[Akonadi] [Bug 318444] data loss in maildir resource: Mails that were accessible disappeared and are not visible in maildir directory anymore

Alejandro Nova alejandronova at gmail.com
Sun Oct 13 22:15:25 BST 2013


https://bugs.kde.org/show_bug.cgi?id=318444

Alejandro Nova <alejandronova at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alejandronova at gmail.com

--- Comment #5 from Alejandro Nova <alejandronova at gmail.com> ---
Guys, this has nothing to do with data loss caused by filesystem. It's simple:
if we check the bug poster's name, Martin Steigerwald, we'll notice he is
German, or, better, comes from a non-English country. I've reproduced this
issue, and now I know why does it happen.

STEPS TO REPRODUCE.

1. Install KDE without proper language packages, but in your language (let's
say, Spanish).
2. Run KDE and start Akonadi. The Akonadi Maildir resource will create folders
with special names ("inbox", among others)
3. Install your proper language packages, switch your KDE language to your own
(Spanish) and reboot.
4. The Akonadi Maildir resource, under certain conditions, will create again
those special folders, but with LOCALIZED NAMES ("bandeja de entrada", for
instance)
5. Now Akonadi will confuse itself between "inbox" and "bandeja de entrada" and
will sometimes send mail to the wrong folder. Also, sometimes, all mail will
disappear, since KDE will attempt to display the other Inbox folder, which is
empty.

The solution seems to be: wait until Akonadi displays both inboxes, change the
name of the only inbox whose name can be changed, move all mail from one to
another, and delete the bogus inbox folder. I've tested that, it works, and
since I did that I'm not losing mails anymore.

This also provokes a host of side effects, including a memory leak and a hang
in Kontact.

Suggestion: please stop creating localized folders and simply create "inbox"
folders, and then localize the name. The code for that exists, and it currently
competes with the code which creates localized folders.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list