Bug 161528 - Sorting/threading is broken for some messages (with option "Thread Messages")
Summary: Sorting/threading is broken for some messages (with option "Thread Messages")
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.9
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-05-02 16:14 UTC by Thomas Friedrichsmeier
Modified: 2009-05-07 14:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full source of one of the messages that get sorted/threaded badly (3.17 KB, text/plain)
2008-05-02 16:19 UTC, Thomas Friedrichsmeier
Details
Full source of one of the mails from bugs.launchpad.net that get sorted correctly (2.91 KB, text/plain)
2009-04-05 15:03 UTC, Thomas Friedrichsmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2008-05-02 16:14:24 UTC
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).
Comment 1 Thomas Friedrichsmeier 2008-05-02 16:19:42 UTC
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.
Comment 2 A. Spehr 2009-04-05 10:06:16 UTC
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!
Comment 3 Thomas Friedrichsmeier 2009-04-05 15:03:33 UTC
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!
Comment 4 Thomas Friedrichsmeier 2009-05-07 14:20:34 UTC
I can no longer reproduce this in KMail 1.11.2, so the issue appears to be fixed in KDE 4 versions of KMail.