Bug 275567

Summary: IMAP subfolders messed up after migration from KMail 1
Product: [Frameworks and Libraries] Akonadi Reporter: jem
Component: MigrationAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: arne, eggert, karsten, nico.kruber
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jem 2011-06-13 17:45:24 UTC
Version:           2.1.0 (using KDE 4.6.4) 
OS:                Linux

The KMail2 migration tool failed to handle IMAP subfolders properly. They are visible under INBOX, but show up empty. Refreshing the folders doesn't work either. In addition, non-ASCII letters in the names are displayed funny, for example, 'ä' is converted to '&AOQ-' and 'ö' to '&APY-'.

Running akonadiconsole produces error messages like this:
AgentBase(akonadi_imap_resource_0): Select failed, server replied: A000153 NO Invalid mailbox name: INBOX/Subfolder

Removing the account and then re-creating it fixes the problem, even the folder names with non-ASCII letters in them.


Reproducible: Didn't try

Steps to Reproduce:
Create subfolders on an IMAP server using KMail 1 (or any MUA), upgrade to KMail 2 and let the automatic migration tool do its job.

Actual Results:  
Subfolders on the IMAP server are shown empty, and folders with non-ASCII characters in their names are renamed as described above.

Expected Results:  
I expected the migration tool to do its job properly.

The IMAP server is running Dovecot v2.
Comment 1 Arne K. Haaje 2011-06-27 09:22:24 UTC
I can confirm this. After first using the migration tool, all sub-folders showed up empty. 

As the OP suggested, I deleted the account and recreated it manually. Now all folders show up correctly.

btw, I first confirmed on 275418, but it appears the issue is with the migration tool, so this is probably the right place for it.
Comment 2 Eggert Ehmke 2011-07-19 06:36:14 UTC
Confirm, I had the same problem, and it seems to be solved by recreation of the account. But now I get the message box each time the message list is refreshed:

(account name) Select failed. server replied A000488 NO Internal error occurred. Refer to server log for more information.
Comment 3 Nico Kruber 2011-07-28 09:15:11 UTC
same here even with kdepim 4.7.0 (re-creating the account seems to help, too)
Comment 4 Karsten Ehrlich 2011-09-10 11:10:46 UTC
I can confirm this, but with slightly different behaviour:
Some of the subfolders show one or two E-Mails out of hundreds on the server. Additionally those shown E-Mails seem to get copied every time KMail checks the server. I end up with hundreds of copies of said E-Mails (locally, not on the server).

I wanted to see if this is common problem with my mail setups and tried a fresh install without migrating from KMAil1. But on this fresh install KMAil2 does not show any Mail in the subfolders.
Comment 5 Christophe Marin 2011-09-13 12:57:02 UTC

*** This bug has been marked as a duplicate of bug 258635 ***
Comment 6 Christophe Marin 2011-09-13 15:25:58 UTC
Don't mix the issues please, 

>(account name) Select failed. server replied A000488 NO Internal error
>occurred. Refer to server log for more information.

is bug 258635
Comment 7 Denis Kurz 2016-09-24 20:31:43 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 8 Denis Kurz 2017-01-07 22:04:08 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.