Closed Bug 474790 Opened 16 years ago Closed 15 years ago

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

Categories

(MailNews Core :: Database, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: asac, Assigned: asac)

References

Details

(Keywords: fixed-seamonkey2.0.1)

Attachments

(1 file)

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
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: 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.
(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)
Is this still broken in TB 3.0 b4?
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+
thx. in case you give credits in commit use asac@ubuntu.com ;) ...
thx for the fix, Alexander, credit noted and change pushed.
Status: ASSIGNED → RESOLVED
Closed: 15 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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: