Moving your mail storage location - Thunderbird: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (forgot one)
(add note about antivirus and malware software)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
By default, your mail is stored in your [[Profile folder - Thunderbird|profile folder]], along with your address books and settings. If you want to move your mail (but '''not''' the entire contents of the profile folder) to a different location, follow the steps below.
By default, your mail is stored in your [[Profile folder - Thunderbird|profile folder]], along with your address books, settings, addons and other files. If you want to move your mail (but '''not''' the entire contents of the profile folder) to a different location, follow the steps below.
 
Thunderbird checks that you are not specifying a directory where something might accidentally delete your data or cause other problems, but its not infallible. '''Before you change where your mail is stored, read [[Dangerous_directories_-_Thunderbird | Dangerous directories]] to check whether you are making a safe choice.''' Also, make certain the directory location(s) are set as exclusions in your antivirus and antimalware software. And think about how this affects backing up your data. Mozbackup for example only backs up directories in the profile.  


==For accounts using the [[Global Inbox]] (Local Folders)==
==For accounts using the [[Global Inbox]] (Local Folders)==


1. Exit Thunderbird if it is running. Create a folder in the new location where you would like to store your mail.
1. Set Thunderbird to use offline mode by selecting File -> Offline -> Work Offline. It only takes a minute to change the local directory but working offline eliminates any chance of downloading a new message while you are doing that.  
 
2. Go to your existing [[Profile folder - Thunderbird|profile folder]] and copy your mail files over to the new location. By default accounts using the Global Inbox have their messages stored in [[Local Folders]], which is located in the "Mail" folder in your profile folder. Copy the entire contents of "Local Folders", including all subfolders, over to the new location.
 
3. Start Thunderbird and go to "Tools -> Account Settings", and then click on "Local Folders" in the left pane (you may need to scroll down to see it). Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 1 and click the "OK" button. Verify that the "Local directory" field shows the correct path to the new storage location of your mail.


: Note: there was a bug in Thunderbird version 0.8 which prevented the directory setting for Local Folders from being changed in this manner. This bug has apparently been fixed and should not affect subsequent versions.
2. Exit Thunderbird. Create a directory in the new location where you would like to store your mail.


: Note: This bug reappeared in 1.5 Beta 2 (20051006) but has since been fixed [https://bugzilla.mozilla.org/show_bug.cgi?id=308311].
3. Go to your existing [[Profile folder - Thunderbird|profile folder]] and copy your mail files over to the new location. By default accounts using the Global Inbox have their messages stored in [[Local Folders]], which is located in the "Mail" folder in your profile folder. Copy the entire contents of "Local Folders", including all subfolders, over to the new location.  


: Note: With some display settings in Windows, the "Local directory" setting is not visible in this dialogue box - you may need to adjust the size of text and various other settings until it is.
4. Start Thunderbird and go to "Tools -> Account Settings", and then click on "Local Folders" in the left pane (you may need to scroll down to see it). Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 2 and click the "OK" button. Verify that the "Local directory" field shows the correct path to the new storage location of your mail.


You will need to restart Thunderbird to see the changes. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the mail files from your profile folder.
5. Set Thunderbird to use online mode again by selecting File -> Offline -> Work Online. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the old mail files from your profile folder.


==For accounts not using the Global Inbox==
==For accounts not using the Global Inbox==


1. Exit Thunderbird if it is running. Create a folder in the new location where you would like to store your mail. If changing the storage location for more than one account, create a separate folder for each account.
1. Set Thunderbird to use offline mode by selecting File -> Offline -> Work Offline. It only takes a minute to change the local directory but working offline eliminates any chance of downloading a new message while you are doing that.  


2. Go to your existing [[Profile folder - Thunderbird|profile folder]] and copy your mail files over to the new location. For each account you want to move: find that account's folder in the "Mail" folder (POP3 accounts) or the "ImapMail" folder (IMAP accounts) and copy its entire contents, including all of its subfolders, over to the new location.
2. Exit Thunderbird. Create a directory in the new location where you would like to store your mail. If you are changing the storage location for more than one account, create a separate directory for each account.


3. Start Thunderbird and go to "Tools -> Account Settings -> [account name] Server Settings". Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 1. Click the "OK" button and verify that the "Local directory" field shows the correct path to the new storage location of your mail.
3. Go to your existing [[Profile folder - Thunderbird|profile folder]] and copy your mail files over to the new location. For each account you want to move find that account's folder in the "Mail" folder (POP3 accounts) or the "ImapMail" folder (IMAP accounts) and copy its entire contents, including all of its subfolders, over to the new location. If you're not sure where an account stores its folders look in "Tools -> Account Settings -> [account name] -> Server Settings -> Local directory.  


: Note: With some display settings in Windows, the "Local directory" setting is not visible in this dialogue box - you may need to adjust the size of text and various other settings until it is.
4. Start Thunderbird and go to "Tools -> Account Settings -> [account name] -> Server Settings". Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 2. Click the "OK" button and verify that the "Local directory" field shows the correct path to the new storage location of your mail.


4. If you have more than one mail account, repeat step 3 for each account whose mail you moved in steps 1-2.  
5. If you have more than one mail account, repeat step 4 for each account whose mail you moved in steps 2-3.  


You will need to restart Thunderbird to see the changes. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the mail files from your profile folder.
6. Set Thunderbird to use online mode again by selecting File -> Offline -> Work Online. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the old mail files from your profile folder.


==See also==
==See also==
* [[Thunderbird : FAQs : Changing Profile Folder Location | Changing your profile folder location]]
* [[Thunderbird : FAQs : Changing Profile Folder Location | Changing your profile folder location]]
* [[Dangerous_directories_-_Thunderbird | Dangerous directories]]


==External links==
* [http://forums.mozillazine.org/viewtopic.php?f=39&t=1693385&start=0 MozillaZine forum thread] with information about the settings used.
* Bug report requesting [https://bugzilla.mozilla.org/show_bug.cgi?id=345070https://bugzilla.mozilla.org/show_bug.cgi?id=345070 move cache outside of the regular profile folder]
* Bug report requesting [https://bugzilla.mozilla.org/show_bug.cgi?id=147344 breaking up the profile for roaming, sharing and performance]
* Bug report requesting [https://bugzilla.mozilla.org/show_bug.cgi?id=408156 ability to split prefs into multiple files]
[[Category:Mail (Thunderbird)]]
[[Category:Mail (Thunderbird)]]
* Bug report requesting [https://bugzilla.mozilla.org/show_bug.cgi?id=535137 location of index (global-messages-db.sqlite) be customizable]
[[Category:Profiles]]
[[Category:Profiles]]

Latest revision as of 14:28, 4 October 2016

By default, your mail is stored in your profile folder, along with your address books, settings, addons and other files. If you want to move your mail (but not the entire contents of the profile folder) to a different location, follow the steps below.

Thunderbird checks that you are not specifying a directory where something might accidentally delete your data or cause other problems, but its not infallible. Before you change where your mail is stored, read Dangerous directories to check whether you are making a safe choice. Also, make certain the directory location(s) are set as exclusions in your antivirus and antimalware software. And think about how this affects backing up your data. Mozbackup for example only backs up directories in the profile.

For accounts using the Global Inbox (Local Folders)

1. Set Thunderbird to use offline mode by selecting File -> Offline -> Work Offline. It only takes a minute to change the local directory but working offline eliminates any chance of downloading a new message while you are doing that.

2. Exit Thunderbird. Create a directory in the new location where you would like to store your mail.

3. Go to your existing profile folder and copy your mail files over to the new location. By default accounts using the Global Inbox have their messages stored in Local Folders, which is located in the "Mail" folder in your profile folder. Copy the entire contents of "Local Folders", including all subfolders, over to the new location.

4. Start Thunderbird and go to "Tools -> Account Settings", and then click on "Local Folders" in the left pane (you may need to scroll down to see it). Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 2 and click the "OK" button. Verify that the "Local directory" field shows the correct path to the new storage location of your mail.

5. Set Thunderbird to use online mode again by selecting File -> Offline -> Work Online. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the old mail files from your profile folder.

For accounts not using the Global Inbox

1. Set Thunderbird to use offline mode by selecting File -> Offline -> Work Offline. It only takes a minute to change the local directory but working offline eliminates any chance of downloading a new message while you are doing that.

2. Exit Thunderbird. Create a directory in the new location where you would like to store your mail. If you are changing the storage location for more than one account, create a separate directory for each account.

3. Go to your existing profile folder and copy your mail files over to the new location. For each account you want to move find that account's folder in the "Mail" folder (POP3 accounts) or the "ImapMail" folder (IMAP accounts) and copy its entire contents, including all of its subfolders, over to the new location. If you're not sure where an account stores its folders look in "Tools -> Account Settings -> [account name] -> Server Settings -> Local directory.

4. Start Thunderbird and go to "Tools -> Account Settings -> [account name] -> Server Settings". Where it says "Local directory", click on the "Browse..." button to select the folder you created in step 2. Click the "OK" button and verify that the "Local directory" field shows the correct path to the new storage location of your mail.

5. If you have more than one mail account, repeat step 4 for each account whose mail you moved in steps 2-3.

6. Set Thunderbird to use online mode again by selecting File -> Offline -> Work Online. Once you're certain that Thunderbird recognizes the new location of your mail, you can go back and delete the old mail files from your profile folder.

See also

External links