The default bug view has changed. See this FAQ.

mails with References: to itself break threading in thunderbird mailnews DB view backend

RESOLVED FIXED in Thunderbird 3.0rc1

Status

MailNews Core
Database
RESOLVED FIXED
8 years ago
7 years ago

People

(Reporter: Alexander Sack, Assigned: Alexander Sack)

Tracking

({fixed-seamonkey2.0.1})

Trunk
Thunderbird 3.0rc1
fixed-seamonkey2.0.1

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
From ubuntu bug (https://launchpad.net/bugs/320034):

Thunderbird threading doesn't work well for Launchpad bugmail. All the bugmail for one bug is in a thread, except the initial mail, which is sepparated.

Looks like the issue may be the initial mail having a References header referencing itself, e.g.:

Date: Wed, 21 Jan 2009 23:35:44 -0000
From: muadnem <hidden>
To: pochu@ubuntu.com
Reply-To: Bug 319820 <319820@bugs.launchpad.net>
Sender: bounces@canonical.com
[...]
References: <20090121233545.17100.64097.malonedeb@gandwana.canonical.com>
Message-Id: <20090121233545.17100.64097.malonedeb@gandwana.canonical.com>
Subject: [Bug 319820] [NEW] ubuntu 8.10 - gstreamer - totem - internal data
 stream error
(Assignee)

Comment 1

8 years ago
Created attachment 358181 [details] [diff] [review]
ignore self-References

fix by ignoring references identical to current message-id.

The other place to fix this would probably in the threading algorithm itself. I can take a look at that if we don't want to ignore self-references in msg headers completely
Attachment #358181 - Flags: review?(dmose)
(Assignee)

Updated

8 years ago
Assignee: nobody → asac
Status: NEW → ASSIGNED
(In reply to comment #0)
> Thunderbird threading doesn't work well for Launchpad bugmail. All the bugmail
> for one bug is in a thread, except the initial mail, which is sepparated.
> 
> Looks like the issue may be the initial mail having a References header
> referencing itself, e.g.:

RFC 822 states "4.6.3. REFERENCES
The contents of this field identify other correspondence which this message references. Note that if message identifiers are used, they must use the msg-id specification format." (http://www.w3.org/Protocols/rfc822/#z33).

Personally, seems like Launchpad is doing something wrong here by referencing itself in the first mail. Can't this be fixed at the Launchpad level? If Launchpad was open source, I'd even submit a patch.
(Assignee)

Comment 3

8 years ago
(In reply to comment #2)
> (In reply to comment #0)
> > Thunderbird threading doesn't work well for Launchpad bugmail. All the bugmail
> > for one bug is in a thread, except the initial mail, which is sepparated.
> > 
> > Looks like the issue may be the initial mail having a References header
> > referencing itself, e.g.:
> 
> RFC 822 states "4.6.3. REFERENCES
> The contents of this field identify other correspondence which this message
> references. Note that if message identifiers are used, they must use the msg-id
> specification format." (http://www.w3.org/Protocols/rfc822/#z33).
> 
> Personally, seems like Launchpad is doing something wrong here by referencing
> itself in the first mail. Can't this be fixed at the Launchpad level? If
> Launchpad was open source, I'd even submit a patch.

... LP will be opened on 21st Jul 09!

Anyway, even though we can fix this on launchpad side too (and yes, we should) all other mailers i have tested get this threading right; just tbird is confused by a References: to itself.
Component: MailNews: Backend → Database
Product: SeaMonkey → MailNews Core
QA Contact: mailnews-backend → database
Version: unspecified → Trunk
Comment on attachment 358181 [details] [diff] [review]
ignore self-References

bienvenu is a better reviewer than me for this, sorry for not shifting it over earlier.
Attachment #358181 - Flags: review?(dmose) → review?(bienvenu)

Comment 5

8 years ago
Is this still broken in TB 3.0 b4?

Comment 6

8 years ago
Comment on attachment 358181 [details] [diff] [review]
ignore self-References

Thx for the patch - I like it and I'm going to clean it up a little and land it.
Attachment #358181 - Flags: review?(bienvenu) → review+
(Assignee)

Comment 7

8 years ago
thx. in case you give credits in commit use asac@ubuntu.com ;) ...

Comment 8

8 years ago
thx for the fix, Alexander, credit noted and change pushed.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.0rc1
(In reply to comment #8)
> thx for the fix, Alexander, credit noted and change pushed.

http://hg.mozilla.org/comm-central/rev/70552ed90c20

Updated

7 years ago
Keywords: fixed-seamonkey2.0.1

Updated

7 years ago
You need to log in before you can comment on or make changes to this bug.