Bug 360963 - Select identity and "From" automatically on reply in dependence of the answered mail.
Summary: Select identity and "From" automatically on reply in dependence of the answer...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.18.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-25 10:59 UTC by Tom Mittelstädt
Modified: 2024-04-06 08:16 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Mittelstädt 2016-03-25 10:59:15 UTC
Kmail allows to configure identities with one mailbox address (mailbox@some.domain) and several aliases (john@some.domain, jane@some.domain, max@totally-different.domain). It even allows wildcards (lists-*@some.domain), what is really great as MTAs can be configured to allow regex or catchall aliases, too (To: john@some.domain, Delivered-To: mailbox@some.domain)

Unfortunately kmail ignores everything on replying (or forwarding) a mail.

It always selects the identity that is configured in the folder properties and uses always the mailbox address. (I receive a mail at me@some.domain and kmail wants to reply from mailbox@some.domain)

I can change the "From" header manually to match the "To" header of the answered mail (from mailbox@some.domain to me@some.domain), but I think the intention of email identities and aliases is to do that automatically.

It is even worse if there is a common inbox for different providers, as kmail wants to answer mails to me@some.provider with other-account@different.provider (different identity and totally different address).

The latter is a privacy issue as you can easily use the wrong email address.

Reproducible: Always



Expected Results:  
Kmail should select the "From" header with the associated identity automatically to match the "To" header of the replied mail.
Comment 1 OlafLostViking 2016-05-02 08:51:02 UTC
Simple user here.

I am using multiple "account+project@domain" addresses. For some folders I have "use default identity" selected as sender in the folder properties, for others a project specific one.

But the setting mentioned before is only relevant when writing a new message. When I am answering an e-mail to "account+project123@domain" KMail automatically selects the identity associated with that e-mail address including From, BCC and Organization headers. Only when there is no identity configured for that specific address it selects the default one. (This really great support for multiple accounts and identities is one of the many reasons I still use KMail despite akonadi ;-D. )

So perhaps I am overlooking something or my version (KMail 5.2.0) got something fixed which wasn't yet fixed in your version?
Comment 2 Tom Mittelstädt 2016-05-09 10:54:14 UTC
Does not work at all in 5.1.3

The selected identity is always the last one I've selected manually.

expected behavior: I have one account "account@domain" and an alias for it "account\+*@domain".

If I receive a mail for "account+project123@domain" I'd like kmail to automatically select the "account@domain" identity and use "account+project123@domain" as from/sender.
Comment 3 Stephan Karacson 2017-08-28 15:35:24 UTC
I can confirm this. Forward the Email works as expected. Answering the email does not use the identity manually set in the Folder. It even ignores the the Standard-identity. Seems it just goes on the alphabet.
Using kmail 17.04.03 on Gentoo.

Strange: Answering uses wrong ID, forward right one.
Comment 4 Justin Zobel 2022-11-08 06:50:02 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Tom Mittelstädt 2022-11-08 11:35:52 UTC
Still reproducible in  5.18.1