Closed Bug 389805 Opened 17 years ago Closed 17 years ago

Sorting by thread not correct when moving mails into folder that has already succeeding messages

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 181446

People

(Reporter: beese, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
Build Identifier: Version 2.0.0.5 (20070716)

When moving mails into a folder where succeeding (in-reply-to) messages are already present, the new message will not be sorted into a correct thread with the succeeding messages.


Reproducible: Always

Steps to Reproduce:
1. You have a thread of three mails
 Mail 1
 '-Mail 2 (in-reply-to Mail 1)
   '-Mail 3 (in-reply-to Mail 2)
2. Move Mail 3 into a different folder (by drag and drop)
3. Move Mail 2 into the same different folder
4. Move Mail 1 into the same different folder

Actual Results:  
In the new folder the three mails are not sorted into a single thread anymore. 


Expected Results:  
Mails should be sorted as well in the origin folder.


When starting the steps to reproduce with Mail 1 or move all three mails at once the mails are sorted correctly into one thread.
It seems that when mails are moved (or incoming) the sorting algorithms only looks for preceeding mails, not for succeeding (in-reply-to) mails that are already present.
Isn't mails sorted by "Order Received"?
Will next operation change situation?
1. Display "Order Received" column 
   (when local mail folder, this is offset. when newsgroup, this is article No.)
2. Change View/Sort By to "Date" (thru View menu, not by column header click)
3. Change View/Threads to "All"  (thru View menu, not by column header click)
See Bug 388738 for already found mail threading related bugs.
 
Mails are already sorted by date in a treaded view and changing of the sort type has no effect to this bug.
Bug 388738 is not related to this bug because mails are not threaded at all, as it should be.
Check of In-Reply-To: seems to be executed for mails of larger "Order Received"(offset) only.

Following is behavior of Seamonkey 1.1.3(MS Win-XP)
(1.Initial, View/Sort By=Date)
  main-mail (order=1,msgid=A)
    reply-1 (order=2,In-Reply-To:A)
    reply-2 (order=3,In-Reply-To:A)
(2.After move reply-1 to other folder and move back)
  main-mail (order=1,msgid=A)
    reply-2 (order=3,In-Reply-To:A)
    reply-1 (order=4,In-Reply-To:A)
(3.After main-mail is moved to other folder and moved back)
  reply-2   (order=3,In-Reply-To:A)
  reply-1   (order=4,In-Reply-To:A)
  main-mail (order=5,msgid=A)
(3) is same phenomenon as yours.

DUP of Bug 181446.
> 181446 – Thread will be broken when child message is followed by parent message if subjects are not the same 
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.