Bug 325664 - IMAP add folder creates .FOOBAR but stored in akonadi database as /FOOBAR
Summary: IMAP add folder creates .FOOBAR but stored in akonadi database as /FOOBAR
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.10.5
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL: http://forum.kde.org/viewtopic.php?f=...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-05 12:18 UTC by Patrick Noffke
Modified: 2017-01-07 22:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Noffke 2013-10-05 12:18:12 UTC
Please see referenced URL.

I add the folder in kmail, and it doesn't show up in the subscribe list under Manage Local Subscriptions.  When I modify the database using akonadiconsole, it shows up.  

I can see the folder is created as .FOOBAR in the dovecot maildir folder.

Restarting kmail does not work.

Reproducible: Always

Steps to Reproduce:
1.  Right click on top level of email account in left pane (where folders are shown).
2.  Click Add Folder, enter folder name, hit OK.
3.  Folder does not show up.
4.  Right click on account, click Manage Folder Subscriptions, and folder still does not show up.
5.  Modify database as shown in referenced URL.
6.  Folder shows up (I didn't need to restart kmail).
Actual Results:  
See above.

Expected Results:  
See above.

$ rpm -q kdepim
kdepim-4.10.5-1.fc18.x86_64
Comment 1 Daniel Vrátil 2013-10-05 12:55:38 UTC
Dovecot automatically prefixes all folders on filesystem with ".". The important thing is, what separator does it uses in IMAP communication and I'm pretty much certain Dovecot uses "/", unless you have configured it otherwise. (You can verify this by connecting to the server: openssl s_client -connect mail.server.com:imaps, sending "0 LOGIN username password" and then "1 LSUB "" "*"" and checking whether the fourth column says "/" or ".")

From what I can see in the forum, there are two bugs being hit: wrong remoteID for top-level folder and using "/" separator for IMAP servers that use ".". The first problem was fixed in 4.11, the second will be fixed in next 4.11.x release.

If you can, please test with latest version of 4.11 and close this bug if it's fixed.
Comment 2 Patrick Noffke 2013-10-07 14:45:54 UTC
The fourth column is a ".".

I didn't explicitly configure this in dovecot.  In my /etc/dovecot/conf.d/10-mail.conf file, there is an "inbox" namespace, with the separator field commented out.  In fact, everything is commented out in that section except "inbox = yes".  So I'm guessing the default is "." unless it is explicitly set otherwise.

I will probably upgrade to fedora 19 relatively soon.  That would be the earliest I could try 4.11 (assuming they are at 4.11 in that version).
Comment 3 Denis Kurz 2016-09-24 18:01:02 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 22:09:12 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.