Bug 339576 - Can't create new top level IMAP folder
Summary: Can't create new top level IMAP folder
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.5.1
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 17:31 UTC by Tom Chiverton
Modified: 2017-09-08 15:20 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.5.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Chiverton 2014-10-01 17:31:44 UTC
I want to add a new top level folder to my IMAP account.
Right clicking the account name on the left doesn't have the option, right clicking the inbox does, but it creates a child of inbox, not top level.
This used to work at some point since the Kmail2 upgrade but I don't create them very often

Reproducible: Always

Steps to Reproduce:
1. right click account name on left

Actual Results:  
No 'new folder' item

Expected Results:  
New folder item

Dovecot IMAP server, up to date Fedora Core
Comment 1 Tom Chiverton 2014-10-01 17:34:29 UTC
File, New, Add Folder is also greyed out unless a sub folder is selected, which wont create them at the top level.
Comment 2 Tom Chiverton 2014-10-02 17:46:18 UTC
Still broken in 4.14.1 I don't know why the product and version were all changed, or why this is now a problem with Akonadi and not Kmail.
Comment 3 Jean-Baptiste Mardelle 2014-10-20 19:15:33 UTC
I am also seeing this issue since KMail 4.14. 
Creating a top level folder in an IMAP account is impossible. This worked correctly in KMail 4.13.3

After recompiling various kdepim* versions, I found the commit that caused the regression in akonadi. 

This commit introduces the regression and makes it impossible to create top folders:

https://projects.kde.org/projects/kdesupport/akonadi/repository/revisions/70a3bef2d3b2ed9c11b141a3278ae8d1ae651aba


Hope it helps solving the problem.
Comment 4 Tom Chiverton 2014-10-20 20:57:25 UTC
Well that's a start, awesome detective work! Now we wait for someone at KDE to notice?
Comment 5 Jean-Baptiste Mardelle 2014-10-24 11:13:59 UTC
Some additionnal infos:
* When I add a new IMAP account in KMail, I can create new top level folders
* However, closing & re-opening KMail disables the top level folder creation.

Based on my previous comment, I think there is a flag issue with the "MERGE" command implementation, but debugging it is beyond my skills.

I can provide test IMAP accounts if a developer needs to reproduce the bug.
Comment 6 Tom Chiverton 2015-02-16 20:38:56 UTC
Does anyone have an idea how to escalate this bug ?
Comment 7 Peer Frank 2015-02-26 08:58:10 UTC
same thing for additional maildir folders. When created in accounts they do not show up in the folder pane (kmail 4.14.4)
Comment 8 Peer Frank 2015-02-26 08:58:58 UTC
*** This bug has been confirmed by popular vote. ***
Comment 9 Tom Chiverton 2015-06-03 20:17:09 UTC
Not very friendly work around :
https://bugs.kde.org/show_bug.cgi?id=292418#c41
Comment 11 Christoph Feck 2017-05-17 13:29:31 UTC
The current release is 5.5.1, so you are several versions behind. Please test at least 5.3.5.
Comment 12 Wolfgang Bauer 2017-06-04 07:50:15 UTC
Should be fixed in 5.5.2 (KDE Applications 17.04.2):

Git commit 580ef3441cdd9ca2555a2a00c54aaa97a26b43a1 by Daniel Vrátil.
Committed on 02/06/2017 at 20:18.
Pushed by dvratil into branch 'Applications/17.04'.

IMAP: allow creating top-level folders it User namespace is empty

If the server does not support namespaces or if the user namespace is empty
then allow creating sub-collections directly under the top-level collection.
FIXED-IN: 5.5.2

M  +7    -0    resources/imap/retrievecollectionstask.cpp

https://commits.kde.org/kdepim-runtime/580ef3441cdd9ca2555a2a00c54aaa97a26b43a1

(the commit message contained the wrong bug number...)

I can confirm that this works here now on all my IMAP accounts that were affected.
Comment 13 Tom Chiverton 2017-06-09 21:13:25 UTC
Fixed by today's KDE Neon update to KDE 17.04.2
Comment 14 Tom Chiverton 2017-06-17 22:55:52 UTC
Not fixed. Kmail 4:17.04.2-0neon+16.04+xenial+build21
Comment 15 Tom Chiverton 2017-06-21 18:48:33 UTC
Not fixed, sorry : https://bugs.kde.org/show_bug.cgi?id=350219#c22
Comment 16 Daniel Vrátil 2017-09-08 15:20:53 UTC
Should be now fixed (see #350219).