[Bug 104956] dimap: sudden mail loss

Pierre Habouzit madcoder at debian.org
Wed Jun 28 16:32:00 UTC 2006


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=104956         




------- Additional Comments From madcoder debian org  2006-06-28 18:31 -------
I have a way to reproduce kmail bug, that "simulates" a NFS failure and basically shows the weakness of kmail.

1) setup a new folder with only one mail in it, and sync your dimap account fully.
2) quit kmail.
3) go to your ~/.kde/share/apps/kmail/ and find the .fooo.uidcache file chmod it to '0000' instead of 0644.
4) add some mail on the imap server in that folder.
5) start kmail, force a sync of that folder
6) chmod the .uidcache to 0644 again, and force kmail sync again
----> this makes presumably the kio_imap4 crash (at least my kmail tells that the transmission to the imap server broke).
7) force sync *again* and kmail says "no new mail"
----> go back to your imap server: mails have been deleted, only the one single mail that was put at stage 1) remains


I know this is a bit perv to do that, but it simulates quite well the fact that if for some reason kmail can't write its uidcache files correctly, it still assumes it wrote it correctly, and do no consistency checks wrt that. so if for some time that file goes wrong, next time kmail starts, if the file is here, it kio_imap4 crashes a first time (whereas it should in fact detect a cache poisoning), and next time you loose your mail.



More information about the pkg-kde-bugs-fwd mailing list