Bug 444116

Summary: The identity bound to an account always reverts to standard identity after restart of kmail
Product: [Applications] kmail2 Reporter: Patrick <pg>
Component: config dialogAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick 2021-10-20 14:24:17 UTC
SUMMARY
KMail sends mail from newly set up accounts with the standard identity instead of the newly created identity.


STEPS TO REPRODUCE
1. Set up new account with new identity
2. Click the folder of the new account
3. Click "New"

OBSERVED RESULT
The identity chosen by KMail in the drop down menu is the standard identity.

EXPECTED RESULT
The identity should be the new identity.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon Testing 20211019-1822
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.88
Qt Version: 5.15.3

ADDITIONAL INFORMATION
KMail is my standard mail program and I use it with various accounts. During the last six months this became a problem. Setting up a new account and linking it to a new identity semms to work fine until I try to send a mail - KMail automatically chooses the standard identity to send the mail. 

In the settings dialogue (>Settings >Configure KMail >Receiving >[new Id] >Modify >Advanced) under Identity settings "Use default identity" is not marked and the dropdown menu shows correctly [new Id] as the chosen Id.

But in the "Folder properties" of the new account under the "General" tab the dropdown menu shows the standard identity as selected ("Use default identity" is not marked). After choosing [New Id] as the "Sender identity" subsequent mails will be sent with the correct identity. After a restart of KMail the standard identity will again be used instead of the [new Id].

The bug seems to have been introduced with the version of KMail that came with Kubuntu 21.04 (hirsute hippo) and it's present in 21.10 as well. I checked the current KDE Neon testing as well (KMail Version 5.18.3 (21.08.3)) and it is still there.