Closed Bug 383846 Opened 18 years ago Closed 18 years ago

Tags could be lost when Sent folder index is rebuild (X-Mozilla-Keys: header is not written when copied to "Sent")

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: cbook, Assigned: Bienvenu)

Details

(Keywords: dataloss, regression, verified1.8.1.5)

Attachments

(2 files)

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 ID:2007060411 Tag some messages in your send folder (like important) and rebuild the mail index. -> Tags are lost after the rebuilding
This bug reported during the testday and so far, i can reproduce this on local folders.
Flags: blocking1.8.1.5?
After some more testing: This could be reproduced also in other local folders, the workaround is to compact the folder (if there are deleted, moved messages) and after the compacting of the folder, the tags are not lost.
Summary: Tags in sent folder are lost when index is rebuild → Tags could be lost when index is rebuild
Yup - we're not putting an x-mozilla-keys header in messages we copy to the sent folder, so we have no place to put the tags, until you compact the folder. Good catch.
Summary: Tags could be lost when index is rebuild → Tags could be lost when Sent folder index is rebuild
Attached patch proposed fixSplinter Review
write out an empty x-mozilla-keys header when doing local fcc.
Assignee: nobody → bienvenu
Status: NEW → ASSIGNED
Attachment #267807 - Flags: superreview?(mscott)
Comment on attachment 267807 [details] [diff] [review] proposed fix good find carsten!
Attachment #267807 - Flags: superreview?(mscott) → superreview+
OS: Windows XP → All
Hardware: PC → All
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Adding "X-Mozilla-Keys:" in summary for ease of search.
Summary: Tags could be lost when Sent folder index is rebuild → Tags could be lost when Sent folder index is rebuild (X-Mozilla-Keys: header is not written when copied to "Sent")
Scott: I'll leave the "blocking" judgement up to you on this one. Also may want for an eventual tbird 1.5.0.13
Flags: blocking1.8.0.13?
Flags: blocking-thunderbird2?
the problem doesn't exist in 1.5 - it's related to the new tag stuff (labels are tags in 2.0)
So the request can be removed. Also adding dataloss keyword to indicate that we lose data.
Flags: blocking1.8.0.13?
Keywords: dataloss
I'm going to minus this as a blocker but will request approval to land it on the branch as I think we want it, but I wouldn't block a release for it.
Flags: blocking-thunderbird2? → blocking-thunderbird2-
Comment on attachment 267807 [details] [diff] [review] proposed fix we'd like this mailnews fix on the 1.8.1 branch for the next thunderbird release.
Attachment #267807 - Flags: approval1.8.1.5?
Verified with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a6pre) Gecko/20070614 Thunderbird/3.0a1pre ID:0000000000 [cairo] on a POP3 account. This bug is not fixed for IMAP accounts! David, do you know an existing bug report which covers the IMAP part? If not I think it should be addressed within another bug report.
Status: RESOLVED → VERIFIED
Component: Mail Window Front End → MailNews: Backend
Keywords: regression
Product: Thunderbird → Core
Version: 2.0 → Trunk
if your server doesn't support custom keywords, Henrik, then there's nothing we can do about the imap case.
I activated custom keywords for my courier imap server and now it works. Thanks David.
Minusing for branch per comment 11, but we'll look at the approval request.
Flags: blocking1.8.1.5? → blocking1.8.1.5-
Comment on attachment 267807 [details] [diff] [review] proposed fix approved for 1.8.1.5, a=dveditz for release-drivers
Attachment #267807 - Flags: approval1.8.1.5? → approval1.8.1.5+
Whiteboard: [checkin needed]
fixed for 1.8.1.5
Keywords: fixed1.8.1.5
Whiteboard: [checkin needed]
the branch version of the patch is slightly different because of the filespec exorcism from the trunk.
Verified with Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.5pre) Gecko/20070628 Thunderbird/2.0.0.5pre Mnenhy/0.7.5.0 ID:2007062903
Target Milestone: --- → mozilla1.8.1
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: