Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change action name/icon when "replying" to a message sent by yourself #5731

Open
gunnarhaslinger opened this issue Oct 10, 2021 · 3 comments
Labels
type: enhancement New features or improvements to existing features.

Comments

@gunnarhaslinger
Copy link

When answering emails which was sent with an "Reply-To:" header the composed answer is addressed to the From: and not the Reply-To Address.

@cketti
Copy link
Member

cketti commented Oct 11, 2021

Works for me with the latest stable version (5.806) and the latest beta version (5.904).

Please provide the information asked for in the issue template and include (redacted) headers of the message you're replying to.

@cketti cketti added type: bug Something is causing incorrect behavior or errors status: needs information Needs more information to proceed labels Oct 11, 2021
@gunnarhaslinger
Copy link
Author

gunnarhaslinger commented Oct 11, 2021

Thanks @cketti for your test and feedback.

I tested again and again, now found out which exact situation triggers the behavior.

I can confirm that K-9 Mail 5.904 usually respects the "Reply-To:" header and works as expected.

But there is a special situation where it does not:

My configured Mail-Address is gunnar@demo-domain.demo
If I get an email with following headers:
FROM: anybody@demo2-domain.demo
TO: anybody@demo2-domain.demo
Reply-To: gunnar@demo-domain.demo

and I hit the "Reply-to" button (or the "Reply-to-all" button) then the "Reply-To:" Address is not respected. So if the "Reply-To" address matches my own configured email-address which would practically lead to sending a Mail from me to myself, the "Reply-To:" is not respected and the mail is addressed to the "FROM:" address instead of using the "Reply-To" address.

So - this is not a typical situation, it was just my test-case of testing a form-mailer which led to this "special scenario". No idea why there is an other behavior in this situation and if this is a bug or if it is intentional.

K-9 Mail version: 5.904
Android version: 11
Device: Poco X3 Pro
Account type: IMAPS

@cketti cketti removed the status: needs information Needs more information to proceed label Oct 11, 2021
@cketti
Copy link
Member

cketti commented Oct 11, 2021

Thanks 👍

It's not the From address that is used, it's the To address. This behavior is intentional (and was introduced in 2010). The same happens when replying to a message sent by yourself even when the message doesn't contain a Reply-To header.

According to the commit message that introduced the behavior, the idea is that the user most likely wants to send a message to the other party when replying to a message they sent themselves.
I agree that this is most likely what a user wants to do when e.g. tapping "reply" on a message in the Sent folder. But maybe we can make this less confusing by using a different icon and/or name for the action. This would be an addition to #3738.

@cketti cketti changed the title Answering mail doesn't respect Reply-To header Change action name/icon when "replying" to a message sent by yourself Sep 9, 2022
@cketti cketti added type: enhancement New features or improvements to existing features. and removed type: bug Something is causing incorrect behavior or errors labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New features or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants