Open
Bug 380598
Opened 18 years ago
Updated 2 years ago
When tags are overflowed(due to X-Mozilla-Keys: size limit), compact folder duplicates overflowed tags in mail source, then tags are duplicated after rebuild index
Categories
(MailNews Core :: Database, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: World, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
177.47 KB,
image/png
|
Details |
This is spi-off of Bug 380545 Comment #3.
When total length of X-Mozilla-Keys: header exceeds size limit(96 bytes now), overflowed tags are held in .msf and are written in additional lines of X-Mozilla-keys: when compact folder.
But when additional header line is written, some overflowed tags were duplicated in mail source.
And these duplicates were treaded as independent tags after Re-build Index.
Test Scenario (latest-trunk 2007/5/09 build, MS Win-XP SP2)
1. A mail has tags of tag-001 to tag-009 (within 96 bytes, single line)
2. Add tag-00000010, tag-10, tag-00000011, tag-11 (in this order)
=> tag-10 was written because space was available
=> tag-00000010, tag-00000011, tag-11 were not written due to overflow
3. Compact folder
(X-Mozilla-Keys: header in message source)
First line : tag-001 to tag-009, tag-00000010, tag-10, tag-00000011, tag-11
Second line: tag-00000011, tag-11 (<=duplicated)
Third line : Null line
(Mail Display after compact - upper mail window in screen shot)
tag-001 to tag-009, tag-00000010, tag-10, tag-00000011, tag-11 (correct)
4. Rebuild Index
(Mail Display after Re-build Index - lower mail window in screen shot)
tag-001 to tag-009, tag-00000010, tag-10, tag-00000011, tag-11
and duplicated tag-00000011 and tag-11 were displayed.
Reporter | ||
Updated•18 years ago
|
Attachment #264705 -
Attachment mime type: text/plain → image/png
Reporter | ||
Updated•18 years ago
|
Summary: When tags are overflowed(due to X-Mozilla-Keys: size limit), compact folder duplicates overflowed tags in mail source, then tags are duplicated after ebuild index → When tags are overflowed(due to X-Mozilla-Keys: size limit), compact folder duplicates overflowed tags in mail source, then tags are duplicated after rebuild index
Reporter | ||
Comment 1•18 years ago
|
||
Correction: (sorry for spam)
At step 4, duplicated tag was tag-00000011 only in screen shot. I can't know whether tag-11 is not duplicated in .msf or duplicated tag-11 is not displayed because of display area space limit.
Updated•17 years ago
|
Blocks: tb-tagsmeta
Comment 2•16 years ago
|
||
I'm going to try to reproduce this with a trunk build
Status: NEW → ASSIGNED
Reporter | ||
Comment 3•16 years ago
|
||
Following tags made my problem re-creation test very easy.
(no need of many tags, top in tag list, short display of tag name in UI)
> user_pref("mailnews.tags.$_1.tag", "X-1");
> user_pref("mailnews.tags.$_1_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890.tag", "X-1-L");
> user_pref("mailnews.tags.$_2.tag", "X-2");
> user_pref("mailnews.tags.$_2_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890.tag", "X-2-L");
> user_pref("mailnews.tags.$_3.tag", "X-3");
> user_pref("mailnews.tags.$_3_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890.tag", "X-3-L");
> user_pref("mailnews.tags.$_4.tag", "X-4");
> user_pref("mailnews.tags.$_4_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890.tag", "X-4-L");
I tried above tags yesterday with trunk build, and rough result was as follows.
1. Copy a mail to a folder, compact
2. Add tags of X-1, X-1-L, X-2, X-2-L X-3, X-3-L X-4, X-4-L
=> X-1-L, X-2-L, X-3-L, X-4-L are not written in X-Mozilla-Keys:
3. Copy a mail to folder, and delete it, compact
=> All tags are written in 3 line X-Mozilla-Keys:
(dup'ed short tag on second line may be observed at this step)
4. Remove tag of X-1-L, X-2-L, X-3-L, X-4-L
=> Line-1 X-Mozilla-Keys: X-1 X-2 X-3 X-4
Line-2 Remained tags (X-3, X-3-L etc.) on second line
Line-3 Line of all spaces
5. Copy a mail to folder, and delete it, compact
=> Garbage(including dup'ed short tags) still remain
6. Re-build Index will produce revived long tags.
Note: If mail at step 4 is copied to IMAP folder, Line-3(all space line) will produces protocol violation.
Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
Comment 4•16 years ago
|
||
Sorry if I'm misunderstanding, but is this bug to do with the following? I have some very large mailbox folders. Occasionally when I switch to one, the messages won't appear immediately. Instead Tbird takes several minutes - presumably it's decided to rebuild the folder. After the threadpane is finally drawn, a considerable number of the messages are now marked as unread and appear as duplicate pairs.
Comment 5•11 years ago
|
||
(In reply to Wayne Woods from comment #4)
> Sorry if I'm misunderstanding, but is this bug to do with the following? I
> have some very large mailbox folders. Occasionally when I switch to one, the
> messages won't appear immediately. Instead Tbird takes several minutes -
> presumably it's decided to rebuild the folder. After the threadpane is
> finally drawn, a considerable number of the messages are now marked as
> unread and appear as duplicate pairs.
Assignee: mozilla → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(m-wada)
Reporter | ||
Comment 6•11 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #5)
> Flags: needinfo?(m-wada@usa.com)
What kind of Info do you want from me for this bug?
I believae that "[Steps to reproduce] what I presented in comment #0 of this bug" is one of simplet/easiest procedures on the Earth for problem of this bug.
If you or your friends can't reproduce problem of this bug by the "[Steps to reproduce] what I presented in comment #0 of this bug", let me know about "what you exactly did", please. And, please describe about detail of "what hapened by your duplication test", please.
Sorry but I didn't do duplication test of this bug with newer Thunderbird releases, I don't know status of recent Thunderbird releass.
Flags: needinfo?(m-wada)
Comment 7•11 years ago
|
||
Reporter | ||
Comment 8•11 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #7)
> I am asking you about comment 4 (not comment 0) which I quoted, which was posed as a question to you.
Why shoud I answer to comment 4? What kind of answer should I do, even though essentially irrelevant comment to actual problem of this bug?
Comment 9•11 years ago
|
||
(In reply to WADA from comment #8)
> essentially irrelevant comment to actual problem of this bug?
That's a perfectly fine response. Again, it wasn't my question. Please Don't shoot he messenger :)
Comment 10•10 years ago
|
||
Yeah, comment 4 seems not related to this bug. Messages suddenly appearing unread could be related to bug 840418.
WADA, do you still see this problem in TB38?
Reporter | ||
Comment 11•10 years ago
|
||
I guess this bug was caused by problem like "error in duplication check of tag" in the past, and I hope already resolved.
But STR is pretty simple, and any one can do duplication test... read comment #6, please...
And, this pretty old bug is never relevant to relatively new bug 840418...
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•