Closed Bug 354726 Opened 18 years ago Closed 18 years ago

when moving a message between folders, keywords (tags and junk status) are lost

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: asa, Assigned: Bienvenu)

References

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 2 obsolete files)

I've just migrated to the new mail server infrastructure at MoCo and updated Thunderbird to the latest nightly Tbird 2 build. 

When I move a message (or it's automatically moved) from one folder to another folder, the junk status and tags are lost. If the server doesn't support it, we should do the move ourselves to preserve the keywords.
This works fine for me with the new MoCo server, because it actually handles it on the server, so we don't have to. 

What doesn't work is migrating keywords from the old server to the new server, because the old server didn't support keywords, so there was nothing to migrate.
Argh, I think the MoCo server has an unfortunate behavior - when we store a keyword like Work1, it turns it into WORK1. We treat user-defined keywords as case sensitive, though we treat the reserved keywords case-insensitively. Maybe we have to ignore the case of user-defined keywords but that scares me with mod-utf7 strings.
Attached patch this should fix the tags problem (obsolete) — Splinter Review
This will fix the tags problem, for newly created tags - but I'm really not happy about it and I'd like to push back a little on the MoCo server... 

Asa, you can fix your tags by editing your prefs.js and converting all your keys to upper case.  So, for example, for the tag "Work1", you want to change the pref names to *.WORK1, like this:

user_pref("mailnews.tags.WORK1.color", "");
user_pref("mailnews.tags.WORK1.tag", "Work1");
this should fix the losing of the junk/non junk keywords. I'm still thinking about the other keyword handling - my other patch fixes the problem for the MoCo server, but we really want to do case-insensitive compares instead of just always using upper case keys, because some server might arbitrarily decide to lower case all the keywords it returns...
Attachment #241064 - Flags: superreview?(mscott)
Attached patch normalize all keys to lower case (obsolete) — Splinter Review
upgrade all tag prefs so that the key is lower case, and make all queries lower case the key in the pref name before loading the pref.
Attachment #240685 - Attachment is obsolete: true
Attachment #241098 - Flags: superreview?(mscott)
Attachment #241064 - Flags: superreview?(mscott) → superreview+
Comment on attachment 241098 [details] [diff] [review]
normalize all keys to lower case

I don't think this is the right patch attachment...
Attachment #241098 - Flags: superreview?(mscott) → superreview-
Attachment #241098 - Attachment is obsolete: true
Attachment #241102 - Flags: superreview?(mscott)
Attachment #241102 - Flags: superreview?(mscott) → superreview+
fixed on trunk and branch.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
The dropped error code of GetColorForKey here caused bug 368370.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: