Bug 261757 - Local IMAP Cache is invalid after moving a tree of folders - resulting in many useless error messages
Summary: Local IMAP Cache is invalid after moving a tree of folders - resulting in man...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: folder list (show other bugs)
Version: 1.13.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-31 23:41 UTC by sam
Modified: 2015-04-12 10:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sam 2010-12-31 23:41:44 UTC
Version:           1.13.5 (using KDE 4.5.1) 
OS:                Linux

* copied a huge mail tree from an IMAP account to local folders
* deleted the original tree in the original IMAP account.
* moved the tree from local folders to a second IMAP account.
* added a third IMAP account in the KMAIL account config

ERROR:

Kmail starts doing something (before closing the account setup dialog box) and discovers that the local imap cache contains references to folders that were moved. The folders are not found (because they were moved,) so Kmail emits the following error message, for each folder, in a dialog box with an OK button:

Error opening [...]; this folder is missing.

There is no "OK TO ALL" option in this error message and, as it happens, there were a few hundred folders in the tree that was moved. So I've been here for a long time now pressing the escape key to get rid of these error messages.

Reproducible: Always

Steps to Reproduce:
This problem appears in many contexts. Normally only a small number of folders are reported missing from the local cache so it's easy to ignore the messages. In this case I am moving trees with hundreds of folders and it is suddenly a severe problem.

Actual Results:  
Useless error message for each folder that was moved (See ERROR above.)

Expected Results:  
The code that moves the folders should be smart enough to invalidate the local cache information for each folder that is moved. This would prevent all the error messages that appear in so many contexts due to invalid cache information.

If fixing the folder move code is not easy to do there is another option:

The code that reports the cache error for the missing folder can be improved to include an "OKAY TO ALL" button. Pressing this button should cause the current operation to not report any remaining missing folder errors.
Comment 1 sam 2010-12-31 23:57:57 UTC
FYI the same error messages were repeated when I finally closed the Account Edit dialog box. Also please replace the word "hundreds" above with "dozens." Thanks again, Happy New Year, --Sam.
Comment 2 Laurent Montel 2015-04-12 10:12:43 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.