Tag is not written in X-Mozilla-Keys: upon copy from IMAP/Maildirstore Offline-Use=On mbox to non-IMAP/Maildirstore mbox or upon overflow of X-Mozilla-Keys:, and, as Compact is killed in Maildir, there is no way to force writing tag in X-Mozilla-Keys:

ASSIGNED
Assigned to

Status

MailNews Core
Database
--
critical
ASSIGNED
3 years ago
3 years ago

People

(Reporter: World, Assigned: rkent)

Tracking

(Depends on: 1 bug, Blocks: 1 bug, {dataloss})

Trunk
dataloss
Dependency tree / graph

Thunderbird Tracking Flags

(thunderbird38-, thunderbird_esr38+)

Details

(Whiteboard: [maildir])

(Reporter)

Description

3 years ago
+++ This bug was initially created as a clone of Bug #855954 +++

Tag is not written in X-Mozilla-Keys: upon copy from IMAP/Maildirstore Offline-Use=On mbox to non-IMAP/Maildirstore mbox or upon overflow of X-Mozilla-Keys:, and, as Compact is killed in Maildir,  there is no way to force writing tag in X-Mozilla-Keys:
(Reporter)

Updated

3 years ago
No longer blocks: 1107835
No longer depends on: 855954
(Reporter)

Comment 1

3 years ago
Because tag is not physically written to X-Mozilla-Keys:, tag is lost by Repair Folder => dataloss.

Comment 2

3 years ago
(dataloss = critical)
Severity: major → critical
(Reporter)

Updated

3 years ago
Blocks: 1144359
(Reporter)

Updated

3 years ago
No longer blocks: 1144359
Depends on: 1144359
(Reporter)

Updated

3 years ago
Whiteboard: [maildir]
(Assignee)

Comment 3

3 years ago
I'll track this since I am committed to making maildir reliable in TB 38.
tracking-thunderbird38: --- → +
(Reporter)

Comment 4

3 years ago
(In reply to Kent James (:rkent) from comment #3)
> I'll track this since I am committed to making maildir reliable in TB 38.

I believe MaildirStore can be released as "usable feature" without fixing this bug.
  Even if "move/copy of tagged mail fron imap to local MaildirStore folder" is not so rare,
  "Repair Folder at the local MaildirStore folder after the move/copy" is rare.
  Even if tag will be lost by  Repair Folder, re-adding the tag is possible(remove, re-add the tag).
  Overflow of X-Mozilla-Keys: is pretty rare. Tag used for "X-Mozilla-Keys: overflow test" is one like next :-)
     mailnews.tags.Tag0000000000000000000000000000000000000000000000000000000000000000001.tag = Tag-1
     mailnews.tags.Tag0000000000000000000000000000000000000000000000000000000000000000002.tag = Tag-2
And, symptom of this bug is applicble to "move/copy from imap to BerkleyStore local folder" except "Compact is impossible".
If bug 1144359 will be fixed, "issues cited by this bug" will not produce actual problem.
(Assignee)

Updated

3 years ago
Assignee: nobody → rkent
Status: NEW → ASSIGNED

Comment 5

3 years ago
Writing of X-Mozilla-* headers is quite strange even in mbox. E.g. if we create new messages in tests and those get written to mbox file, there are none of these headers. You must initiate compact to get them written out. See my test in https://bug840418.bugzilla.mozilla.org/attachment.cgi?id=8564733 . It seems to me we only specially write out the headers in case of POP3 download. It amazes me how we open-code writing out these headers at some places. There should be one common universal function that we could just call to dump the headers out anytime a message is serialized to disk (whether mbox or maildir).

But I don't think you can realistically and nicely fix all the cases for TB38.
(Assignee)

Updated

3 years ago
tracking-thunderbird38: + → -
tracking-thunderbird_esr38: --- → +
You need to log in before you can comment on or make changes to this bug.