589
edits
m (→Implementation) |
|||
| Line 71: | Line 71: | ||
Tags are stored in preferences of the form | Tags are stored in preferences of the form | ||
"mailnews.tags.<key>.tag", "unicode string" | "mailnews.tags.<key>.tag", "unicode string" <br> | ||
"mailnews.tags.<key>.color, "color string" | "mailnews.tags.<key>.color, "color string" | ||
The key is an imap mod-utf7 version of the tag, suitable for use in a pref name, an imap keyword, and part of an x-mozilla-keys header. So, as you might guess, we actually store the key persistently, and translate it to the tag for display purposes. This also allows us to rename a tag by changing the pref without changing all the messages that have that tag. We can also remove a tag by removing the pref, and the key stored in the messages will then be ignored. | The key is an imap mod-utf7 version of the tag, suitable for use in a pref name, an imap keyword, and part of an x-mozilla-keys header. So, as you might guess, we actually store the key persistently, and translate it to the tag for display purposes. This also allows us to rename a tag by changing the pref without changing all the messages that have that tag. We can also remove a tag by removing the pref, and the key stored in the messages will then be ignored. | ||
edits