SUMMARY After changing a path to the Local Folder a prefix 'file:' gets added to a filepath, so a new location of Local Folder becomes /home/serge/file:/home/serge/.local/share/akonadi_maildir_resource_0. Restarting akonadi does not help. Moreover, it is noted that 'file:' gets created under the directory akonadi starts from. Going to the data in the DB shows exactly that value. One might expect that it should contain 'file://' with two slashes instead of one. I do not know whether this happened before but such a behaviour was noticed for 19.12.3. STEPS TO REPRODUCE 1. Start kmail 2. Copy a directory where Local Folder is located to a new location 3. Change settings for Local Folder to that new location OBSERVED RESULT Wrong location for Local Folder EXPECTED RESULT The location should correspond to the one specified in settings SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.13.3 (available in About System) KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.70.0 Qt Version: 5.12.9 ADDITIONAL INFORMATION
It seems the things starts from ConfigWidget::save() in https://invent.kde.org/pim/kdepim-runtime/-/blob/master/resources/maildir/configwidget.cpp but I do not have time to dig in more details. A workaround for that 'file:' thing is by just deleting Local Folder through akonadiconsole and kmail will create a new one. Has to be fixed anyway...
Can you still reproduce it with a more current version? It should actually be fixed since 5.14 (part of the 20.04 releases). https://invent.kde.org/pim/kdepim-runtime/-/commit/93ecfacfb9f21ee027dbcfc7d5d47ddbbb253ba1
And it's a duplicate of bug#408354 (or bug#411269, or bug#413588) anyway... *** This bug has been marked as a duplicate of bug 408354 ***