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.
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
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.