Import/export or retrieve Thunderbird tags from IMAP server

9

3

My experience with tagging IMAP messages in Thunderbird is that those tags will be saved on the server (from what I read they as stored as IMAP keywords), so they are synced, but if you access the same messages with another Thunderbird profile (e.g. from a different computer), you have to re-create the tags in Thunderbird first, and then only will it be able to show those tags on the messages. In other words, you have to tell TB that "those tags exist" or it will not be able to see them.

Two questions:

1/ In the case of a lost Thunderbird profile, which used to contain a lot of tags, is it possible to see all the tags that have been saved to the server, in order to retrieve them? (Either on a per-message basis, or globally)

2/ In the case where the TB profile still exists, is there a way to extract the tags that have been defined in that profile, and then import them to another profile? Or sync them between profiles without having to manually recreate them all?

s427

Posted 2015-10-07T11:11:46.133

Reputation: 373

Answers

2

I'm still very interested in an answer to my first question, but regarding my second question, I found out that the tags are actually saved in the "prefs.js" file, which is in the Thunderbird profile folder. Example for the tag "Important":

user_pref("mailnews.tags.$label1.color", "#FF0000");
user_pref("mailnews.tags.$label1.tag", "Important");

(User-defined tags are also found in that file; not just predefined tags.)

So saving this file is probably a good way to easily make a backup of the tags that have been defined in Thunderbird. As for restoring those tags in another profile, I have not tested it, but maybe simply copying those lines in the file (when TB is not running) would do the trick.

s427

Posted 2015-10-07T11:11:46.133

Reputation: 373