Version: 1.5.93 (using KDE 3.1.93 (3.2 beta 1), compiled sources) Compiler: gcc version 3.3.2 (Debian) OS: Linux (i686) release 2.6.0-test9 I use gmx's pop service; they send a message each day about which mails were put into the spam folder in the mailbox(on their server). When my local kmail inbox has some mails and this spam report comes in, all of the existing mails are threaded inside the gmx-spam mail, and they're completely irrelevant. I'm pasting the headers of the gmx mail and some of the mails that were tagged as its children here: ---- parent: gmx mail ---- From: "GMX Spamschutz" <mailings@gmx.net> To: "GMX Kundennummer <my gmx number>: ; Subject: 33 neue Mails in Ihrem Spamverdacht-Ordner Date: Tue, 11 Nov 2003 04:40:39 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Status: R X-Status: N X-KMail-EncryptionState: X-KMail-SignatureState: X-KMail-MDN-Sent: Statusreport vom 10.11.2003 06:11:31 bis 11.11.2003 05:40:39 ------------------- --- mail threaded under this mail: --- ---- this is the 2nd gmx acct I have ----- From: "GMX Spamschutz" <mailings@gmx.net> To: "GMX Kundennummer <the other number>: ; Subject: 6 neue Mails in Ihrem Spamverdacht-Ordner Date: Tue, 11 Nov 2003 04:40:37 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Status: R X-Status: N X-KMail-EncryptionState: X-KMail-SignatureState: X-KMail-MDN-Sent: Statusreport vom 10.11.2003 06:06:17 bis 11.11.2003 05:40:37 ------ messages threaded under this one -------- Return-Path: <ktdistrib-bounces@zork.net> X-Flags: 0000 Delivered-To: GMX delivery to <email> Received: (qmail 9721 invoked by uid 65534); 6 Oct 2003 14:58:20 -0000 Received: from zork.zork.net (EHLO zork.zork.net) (64.81.246.102) by mx0.gmx.net (mx011) with SMTP; 06 Oct 2003 16:58:20 +0200 Received: from localhost (zork.zork.net) [127.0.0.1] (list) by zork.zork.net with esmtp (Exim 3.35 #1 (Debian)) id 1A6Wb8-00084Q-00; Mon, 06 Oct 2003 07:44:31 -0700 Received: from dsl081-067-005.sfo1.dsl.speakeasy.net (renegade) [64.81.67.5] by zork.zork.net with esmtp (Exim 3.35 #1 (Debian)) id 1A6Wac-000838-00; Mon, 06 Oct 2003 07:43:59 -0700 Received: from zbrown by renegade with local (Exim 3.36 #1 (Debian)) id 1A6WaX-0001A2-00; Mon, 06 Oct 2003 07:43:53 -0700 To: ktdistrib@zork.net Message-Id: <E1A6WaX-0001A2-00@renegade> From: zbrown@tumblerings.org Date: Mon, 06 Oct 2003 07:43:53 -0700 Cc: kcdistrib@zork.net Subject: Kernel Traffic #234 by Zack Brown X-BeenThere: ktdistrib@zork.net X-Mailman-Version: 2.1.2 Precedence: list List-Id: Receive Kernel Traffic by email <ktdistrib.zork.net> List-Unsubscribe: <http://zork.net/mailman/listinfo/ktdistrib>, <mailto:ktdistrib-request@zork.net?subject=unsubscribe> List-Post: <mailto:ktdistrib@zork.net> List-Help: <mailto:ktdistrib-request@zork.net?subject=help> List-Subscribe: <http://zork.net/mailman/listinfo/ktdistrib>, <mailto:ktdistrib-request@zork.net?subject=subscribe> Sender: ktdistrib-bounces@zork.net Errors-To: ktdistrib-bounces@zork.net X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Antispam: 0 (Mail was not recognized as spam) Status: R X-Status: N X-KMail-EncryptionState: X-KMail-SignatureState: Kernel Traffic #234 For 6 Oct By Zack Brown ----------------- I'll attach a png image of how my inbox looks like.
Created attachment 3142 [details] image showing the inbox state after incorrect threading
Subject: Re: New: kmail: Threading too aggressive? Irrelevant messages are threaded On Tuesday 11 November 2003 05:51, Amit Shah wrote: > I use gmx's pop service; they send a message each day about which mails > were put into the spam folder in the mailbox(on their server). > > When my local kmail inbox has some mails and this spam report comes in, all > of the existing mails are threaded inside the gmx-spam mail, and they're > completely irrelevant. I'm pasting the headers of the gmx mail and some of > the mails that were tagged as its children here: Thanks for the detailed bug report. :) > ---- parent: gmx mail ---- > From: "GMX Spamschutz" <mailings@gmx.net> > To: "GMX Kundennummer <my gmx number>: ; > Subject: 33 neue Mails in Ihrem Spamverdacht-Ordner > Date: Tue, 11 Nov 2003 04:40:39 +0000 > Content-Type: text/plain; >
Subject: Re: kmail: Threading too aggressive? Irrelevant messages are threaded On Tuesday 11 Nov 2003 12:21, Till Adam wrote: > Thanks for the detailed bug report. :) heh, thanks. [snipped mail headers] > Do those mails really not have a Message-Id header? That would be rather Yes; those were the entire headers. > broken. Still, if that's the reason than the threading algorithm needs to > handle that more gracefully. Same when switching of threading by subject, > I presume? Today when both were enabled (threading as well as thread by subject), I got the same behavior as reported yesterday. When I disabled the thread by subject option, the mails got sorted properly. On re-enabling the option, the mails stayed sorted the way they were, so didn't observe the weird threading behavior even then. I'll disable the thread by subject and send a dummy message w/o Message-ID to myself to check if that's where the problem lies. > Till Amit.
Subject: kdepim/kmail CVS commit by tilladam: Don't thread messages without an In-Reply-To header below messages without a message id header (*sigh*) just because "" happens to equal "". Amit, thanks for the test case. CCMAIL: 67850-done@bugs.kde.org M +41 -38 kmheaders.cpp 1.589 --- kdepim/kmail/kmheaders.cpp #1.588:1.589 @@ -1160,4 +1160,5 @@ void KMHeaders::msgAdded(int id) mItems[id] = hi; + if ( !msgId.isEmpty() ) mSortCacheItems.replace(msgId, sci); /* Add to the list of potential parents for subject threading. But only if @@ -1186,4 +1187,5 @@ void KMHeaders::msgAdded(int id) // The message we just added might be a better parent for one of the as of // yet imperfectly threaded messages. Let's find out. + if ( !msgId.isEmpty() ) { QPtrListIterator<KMHeaderItem> it(mImperfectlyThreadedList); KMHeaderItem *cur; @@ -1228,4 +1230,5 @@ void KMHeaders::msgAdded(int id) mItems[tryMe]->sortCacheItem()->updateSortFile( sortStream, mFolder ); fclose (sortStream); + } } }
Subject: Re: kmail: Threading too aggressive? Irrelevant messages are threaded On Friday 14 Nov 2003 20:48, Till Adam wrote: > What |Removed |Added > --------------------------------------------------------------------------- >- Status|UNCONFIRMED |RESOLVED > Resolution| |FIXED Thanks, Till :-)