Bug 308378 - KMail gets confused after a maildir local folder is renamed
Summary: KMail gets confused after a maildir local folder is renamed
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.9.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-14 14:23 UTC by Marcelo Sales
Modified: 2017-01-07 21:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
An example of notification pop up that I get after a folder is renamed (74.05 KB, image/png)
2012-10-14 14:25 UTC, Marcelo Sales
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Sales 2012-10-14 14:23:49 UTC
After renaming a maildir local folder, every time it or anything inside it (messages or subfolders) is clicked, a message like the following appearas in the systray notification area:
"Local folders: The Maildir '/home/username/.local/share/local-mail/.inbox.directory/teste in the collection 'test' is invalid."

In this case, a folder named "teste" was renamed to "test".
The message is translated from portuguese, so it may not be exactly that in english. Please see the attached screenshot.

To solve this, I have to rename the problematic folder temporarily to any other name, create another folder with the name I want, move the contents from the problematic folder to this new one I have just created and then remove the old folder.


Reproducible: Always

Steps to Reproduce:
1. Create a local maildir folder
2. Rename the folder you have just created
3. Click on another folder and then go back to the folder you have created
Actual Results:  
Error messages like the one mentioned in the bug description pop up in the notification area. One message pops up for each item stored in the renamed folder.

Expected Results:  
No error message should be issued when the rename folder is accessed.
Comment 1 Marcelo Sales 2012-10-14 14:25:14 UTC
Created attachment 74540 [details]
An example of notification pop up that I get after a folder is renamed
Comment 2 menschmeier 2012-11-07 19:30:09 UTC
I can confirm this bug. It is happing on my system too. I can not fix it.
Comment 3 Unknown 2013-01-23 10:19:10 UTC
Is the problem still present if you "logout" and new-"loging" after "rename" (2) and before (3)?
Comment 4 Marcelo Sales 2013-02-06 22:54:09 UTC
The problem is still present in 4.10. What do you mean by "logout" and new-"logging"? Logout KDE? Close KMail and reopen it? Close KMail, restart Akonadi and reopen KMail?
Comment 5 Unknown 2013-02-07 08:26:20 UTC
I mean: Logout from KDE. And login again.
This is necessary to get some daemons re-startet.
Comment 6 Denis Kurz 2016-09-24 18:14:25 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 7 Denis Kurz 2017-01-07 21:43:11 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.