Version: 1.9.9 (using KDE 3.5.9) Installed from: Debian testing/unstable Packages This report shows some similarities to bug #139860 (but I did not import the mails in question), and bug #157209 (but this one only occurs in conjunction with the "Thread Messages") option. Problem: Some mails keep jumping to the top of the folder. The mails in question were all sent via bugs.launchpad.net. All start have a subject starting with "[Bug 123456]". Not all mails from bugs.launchpad.net are affected, but most are. Looking at the messages sources I fail to make out any pattern. The behavior on those mails is absolutely weird: 1) If I sort the folder according to a new criterion, the messages are correctly sorted, where they should belong. 2) Now I switch to another folder, and then back to the one containing the messages. I scroll all the way up in the message list - the messages are sitting on top again. 3) I move a mail or two out of the folder. The strange messages jump back into place. 4) Repeat step 2 with the same result. 5) This effect is independent on both sort order and sort criterion. I.e. whatever sorting is used, these messages come out on top when switching to the folder. 6) The effect disappears when the "Thread Messages" option is turned off. The "Thread Messages also by subject" option does not make any difference with respect to the bug. Switching either option on / off has the *temporary* effect of bringing the messages back to a sensible place. If "Thread Messages" is on, step 2 applies again. 7) All mails in question are shown as top-level mails when "Thread Messages" is on, even though many are part of threads. When toggling the "Thread Messages" option off, then on, the messages are temporarily threaded correctly. After step 2, they are all shown as top-level mails again. For this symptom, changing the sorting (see steps 1&5) has no effect (messages are sorted correctly, but remain non-threaded).
Created attachment 24602 [details] Full source of one of the messages that get sorted/threaded badly Attaching one broken message. I can supply many more, if needed, but would prefer to do that in private mail, only.
I can't confirm this in 1.11.90. Do you still have this problem in a newer version? If so, can you check the raw headers of the launchpad mails that don't sort funny and see if there is something different from the ones that do? Else attach a copy of one of the emails that works. Thanks!
Created attachment 32621 [details] Full source of one of the mails from bugs.launchpad.net that get sorted correctly Attaching the source of a "good" mail as requested. I don't see any meaningful pattern in the differences between good and bad ones, but I hope this helps. I'm still using KMAil 1.9.9, and can't easily test with a newer version, ATM. However, I expect to upgrade in a few weeks, and will try to remember to check again, then. Should I forget to write back before mid May, please drop me another request for testing before closing this bug. Thanks!
I can no longer reproduce this in KMail 1.11.2, so the issue appears to be fixed in KDE 4 versions of KMail.