[Kde-pim] [PATCH] fix crash in ~KMAcctImap()

Thomas Neumann tneumann at users.sourceforge.net
Sat Oct 25 19:13:51 BST 2008


Hi,

> Do I understand correctly that the patch fixes a crash, but not Bug
> 95064?
yes, unfortunately.

The main bug still eludes me. I can reproduce it, but I do not
understand why it happens (and I am just beginning to become
familiar with the internals of KMail).

As far as I could debug this, the following happens:
1. the user clicks check mail, a new mail is noticed by KMail
2. KMail wants to run the filters, but the message is not there yet. It
triggers a background job to fetch it from the IMAP server
3. the job is done, the filter is run, a new mail is stored on the mail
server

at this point everything seems fine! But it is not, in fact:

4. the user clicks check mail again. Now KMail runs the filter twice
(?), and stores two mails instead of one on the mail server, causing
duplicates.

The description of step 4 is somewhat guessing, if I knew exactly what
happened I would have fixed the bug already... Fact is, for some
obscure reasons re-checking for mail causes KMail to store two
messages.
My guess is that the old filter job is still somehow stuck in
mFilterSerNums (as mFilterSerNumsToSave is non-empty on shutdown when
the bug was triggered), but I don't understand how this happens. Still
debugging...

Thomas
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list