Bug 430780 - With multiple identity, reply doesn't check or use the right one
Summary: With multiple identity, reply doesn't check or use the right one
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.15.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-24 10:47 UTC by Bruno Friedmann
Modified: 2021-02-22 08:02 UTC (History)
1 user (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 Bruno Friedmann 2020-12-24 10:47:10 UTC
SUMMARY
When you have several (for example 2 identities for one account) when you reply to a message received for identity B, it always use the default.

STEPS TO REPRODUCE
1. Create two identities for one email account, domain A.org and B.org are aliases and you have 2 email: A@A.org and B@B.org both using the same account on your server. A@A.org is the main default email for that account
2. Write a mail and send it with B@B.org (selecting this identity in composer)
ask your recipient to reply to it.
3. When you receive the reply, you want also to reply. The composer will use the A@A.org indentity even if the mail is addressed to B@B.org

OBSERVED RESULT
The wrong identity is used.

EXPECTED RESULT
If matching use the right identity, when multiple identity exist, by default.


SOFTWARE/OS VERSIONS
Linux 5.9.14-1-default x86_64 GNU/Linux, nvidia: 460.27.04
Qt: 5.15.2, KDE Frameworks: 5.77.0, Plasma: 5.20.4, kmail2 5.15.3 (20.08.3)

ADDITIONAL INFORMATION

Bonus point, if you start your reply and change whatever character in subject or body, changing identity afterwards will not apply the Signature of the new choosed identity.
Comment 1 Sandro Knauß 2021-02-22 01:20:32 UTC
For me it works like expected and I have a lot of identities with only one account. The identity is detected from the to address or cc address of the incoming mail. Can you please provide the headers of an incoming mail and the identity (that should be recognized)? You find the config of the identities in ~/.config/emailidentities?

here the code that detects the identity for mail:
https://invent.kde.org/pim/messagelib/-/blob/master/messagecore/src/utils/util.cpp
Comment 2 Bruno Friedmann 2021-02-22 08:02:21 UTC
Hello Sandro, while I was annoyed during months(years?) the solution was in fact really simple.

Once you give me the related config file and the code, I've located the source of my troubles. My main account had also the second identity email in the aliases .... :-(

I remove any double entry and now everything is working as expected.
Big thanks and have a nice day.