Bug 375843

Summary: names of akonadi resources in kwallet makes sharing wallets difficult
Product: [Applications] kmail2 Reporter: m.eik michalke <bugs.kde.org>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.2.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description m.eik michalke 2017-02-01 14:27:17 UTC
as soon as you configure an IMAP resource, it ends up in kwallet named "akonadi_imap_resource_Xrc", where "X" is a number and numbers increase for each additional account.

now, i'm trying to use a shared (k)wallet on two machines running kmail2. the problem is that mail accounts were configured in a different order, so the numbers don't match and re-entering passwords effectively overwrites the entries of the other machine. there doesn't seem to be an easy way of renaming the akonadi resources, is there? actually, it would be really helpful if you could just rename those resources to your liking, that would solve the problem. but that would probably involve delicate changes to akonadi (similar requests date back to 2009 at least, e.g. #208188).

this gets even more problematic when some, but not all accounts are being used on both machines (e.g., using A and B one machine 1, but C and A on machine 2). then it's not even possible to solve the issue by deleting all IMAP accounts and reconfiguring them in the correct order again (and then reconfiguring folder settings, identities and filter targets...). in effect, this makes sharing wallets between machines extremely difficult, if not impossible, as soon as you're trying to use kmail with a slighly different IMAP configuration.

for the time being, it would be a good-enough workaround if you could define a designated wallet for kmail. that is, kmail wouldn't necessarily store its passwords in the default wallet, but a configurable one.
Comment 1 Justin Zobel 2022-10-30 00:37:54 UTC
Thank you for reporting this bug 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 2 m.eik michalke 2022-11-01 11:06:57 UTC
unfortunately, it seems like nothing has changed since i reported the issue five years ago. akonadi still uses mere numbers to identify resources instead of giving them a reproducable name, and i don't find an option to use a specific wallet per application.