Combining mail from two profiles - SeaMonkey: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(added SeaMonkey, links for Kill application and menu differences, updated "see also" link)
Line 1: Line 1:
:''This article provides a guide for users wishing to merge mail and address books from two profiles. It was written for Thunderbird but also applies to Mozilla Suite mail and address book profile data.''
''This article provides a guide for users wishing to merge mail and address books from two Thunderbird or Mozilla Suite/SeaMonkey profiles.''  


There may be situations when you want to combine the mail, address books, message filters, or perhaps other files from two separate Thunderbird or Mozilla Suite [[Profile folder | profiles]]. These could be two profiles on the same computer or two profiles on different computers. The mail you wish to combine could be from the same or different mail servers or for different email addresses for the same mail server.  In the guide given below, '''MainProfile''' indicates your primary or "main" profile, where the copied data will end up.  The '''SourceProfile''' is the profile that contains the data to be copied.
There may be situations when you want to combine the mail, address books, message filters, or perhaps other files from two separate [[Profile folder | profiles]]. These could be two profiles on the same computer or two profiles on different computers. The mail you wish to combine could be from the same or different mail servers or for different email addresses for the same mail server.  In the guide given below, '''MainProfile''' indicates your primary or "main" profile, where the copied data will end up.  The '''SourceProfile''' is the profile that contains the data to be copied.


==Become familiar with the profile contents==
==Become familiar with the profile contents==
Inside each profile folder and subfolders you will find various files including  "msgFilterRules.dat" "popstate.dat"  and "training.dat" (see [[Profile folder | here]] here for more information on those files). You will also see a number of subfolders such as "ImapMail", if you've set up IMAP accounts, and "News", if you've set up newsgroup accounts.  We won't be concerned with these subfolders, since those messages are stored on a remote server and are accessible from any profile. The mail files that we are concerned with are those stored in the "Mail" subfolder, which holds your downloaded mail messages.
Inside each profile folder and subfolders you will find various files including  "msgFilterRules.dat" "popstate.dat"  and "training.dat" (see the [[Profile folder]] article for your application for more information on those files). You will also see a number of subfolders such as "ImapMail", if you've set up IMAP accounts, and "News", if you've set up newsgroup accounts.  We won't be concerned with these subfolders, since those messages are stored on a remote server and are accessible from any profile. The mail files that we are concerned with are those stored in the "Mail" subfolder, which holds your downloaded mail messages.
   
   
Inside the "Mail"  subfolder, you will find  a "Local Folders" subfolder (which can be used to store sent newsgroup messages, IMAP mail  and other saved mail).  You will also find other subfolders for each mail account, typically named something like "pop.myisp.com" or "mail.myemailservice.net". (If you have recreated a mail account for the same mail server, such as for different e-mail addresses, or if you removed and then added back the mail account for the same e-mail address, then you will have numbered account folders, such as pop.myisp-1.com and pop.myisp-2.com.)  Inside these Mail subfolders are your '''mail files''', with names such as "Inbox", "Sent", "Drafts", etc., with no extension.  '''These are the files that contain your actual messages'''. Each will have a corresponding index file with the "'''.msf'''" extension, such as "Inbox.msf", "Sent.msf", and "Drafts.msf". These .msf files are index files and it is not necessary to copy them to the MainProfile, as they will be regenerated  if needed. There may also be folders named with the "'''.sbd'''" extension, which usually represent mail folders that contain one or more subfolders.
Inside the "Mail"  subfolder, you will find  a "Local Folders" subfolder (which can be used to store sent newsgroup messages, IMAP mail  and other saved mail).  You will also find other subfolders for each mail account, typically named something like "pop.myisp.com" or "mail.myemailservice.net". (If you have recreated a mail account for the same mail server, such as for different e-mail addresses, or if you removed and then added back the mail account for the same e-mail address, then you will have numbered account folders, such as pop.myisp-1.com and pop.myisp-2.com.)  Inside these Mail subfolders are your '''mail files''', with names such as "Inbox", "Sent", "Drafts", etc., with no extension.  '''These are the files that contain your actual messages'''. Each will have a corresponding index file with the "'''.msf'''" extension, such as "Inbox.msf", "Sent.msf", and "Drafts.msf". These .msf files are index files and it is not necessary to copy them to the MainProfile, as they will be regenerated  if needed. There may also be folders named with the "'''.sbd'''" extension, which usually represent mail folders that contain one or more subfolders.


Familiarize yourself with the contents of both profile folders and how they are organized. You should open Thunderbird in both the MainProfile and the SourceProfile, if possible, and make a note of the Local Directory name used for each mail account, as shown in the account's server settings, for those mail accounts you will be adding or merging. For example, jsmith@myisp.com's mail may be stored in the pop.myisp.com  folder and james@myisp.com account's mail may be stored in the pop.myisp-1.com  folder in the SourceProfile. Be aware that the MainProfile may have different numbered subfolder names assigned for those e-mail addresses.
Familiarize yourself with the contents of both profile folders and how they are organized. You should open Thunderbird or Mozilla Suite/SeaMonkey in both the MainProfile and the SourceProfile, if possible, and make a note of the Local Directory name used for each mail account, as shown in the account's server settings, for those mail accounts you will be adding or merging. For example, jsmith@myisp.com's mail may be stored in the pop.myisp.com  folder and james@myisp.com account's mail may be stored in the pop.myisp-1.com  folder in the SourceProfile. Be aware that the MainProfile may have different numbered subfolder names assigned for those e-mail addresses.


==Make a backup of both profile folders==
==Make a backup of both profile folders==
Close Thunderbird, Mozilla Suite or whatever program you are merging the profiles for. Make sure you also close any open mail messages, download windows, Quick Launch, etc.
[[Kill application |Completely close Thunderbird or Mozilla Suite/SeaMonkey]]. Make sure you also close any open mail messages, download windows, Quick Launch, etc.


Locate and '''make a [[Profile backup | backup]]''' copy of the  [[Profile folder | profile folder]] for your MainProfile, where you will be copying the new data files,  so that in case things go wrong, you can restore the original data to your Main Profile.  Also make a backup copy of the SourceProfile, as you may need to rename certain files.
Locate and '''make a [[Profile backup | backup]]''' copy of the  [[Profile folder | profile folder]] for your MainProfile, where you will be copying the new data files,  so that in case things go wrong, you can restore the original data to your Main Profile.  Also make a backup copy of the SourceProfile, as you may need to rename certain files.


==Add new mail accounts, if needed, in the MainProfile==  
==Add new mail accounts, if needed, in the MainProfile==  
If your SourceProfile (source of the data)  has additional mail accounts that you want to use in the MainProfile for downloading and sending mail, either for another mailserver  or a different e-mail address for the same mailserver, add  these mail accounts in the Thunderbird MainProfile. (To start up Thunderbird with the MainProfile, you may need to use the [[Profile Manager]].)  To create each new account in the MainProfile, go to "Tools -> Account Settings", click on the "Add Account" button, and fill in the account settings as needed. Do not download new mail, or, if you do, copy the new messages to Local Folders (create a new mailbox and copy the messages there) since you will be relacing the mail files in the added account with the mail files from the SourceProfile. Be aware that adding additional accounts for the same mailserver will add a new ''numbered'' account sub-folder to the MainProfile's Mail folder, for example,  ''pop.myisp-1.com'' and ''pop.myisp-2.com'' for additional e-mail address accounts for the same ''pop.myisp.com'' mailserver. These account subfolders are identified in the Local Directory field in the server settings  for each account, within Thunderbird's Account Settings.   
If your SourceProfile (source of the data)  has additional mail accounts that you want to use in the MainProfile for downloading and sending mail, either for another mailserver  or a different e-mail address for the same mailserver, add  these mail accounts in the MainProfile. (To start up with the MainProfile, you may need to use the [[Profile Manager]].)  To create each new account in the MainProfile, go to "[[Menu differences in Windows, Linux, and Mac|Tools -> Account Settings]]", click on the "Add Account" button, and fill in the account settings as needed. Do not download new mail, or, if you do, copy the new messages to Local Folders (create a new mailbox and copy the messages there) since you will be relacing the mail files in the added account with the mail files from the SourceProfile. Be aware that adding additional accounts for the same mailserver will add a new ''numbered'' account sub-folder to the MainProfile's Mail folder, for example,  ''pop.myisp-1.com'' and ''pop.myisp-2.com'' for additional e-mail address accounts for the same ''pop.myisp.com'' mailserver. These account subfolders are identified in the Local Directory field in the server settings  for each account, within the Thunderbird Account Settings or Mozilla Suite/SeaMonkey Mail and Newsgroups Account Settings window.   


==Compact the mail files in each profile==
==Compact the mail files in each profile==
[[Thunderbird : Tips : Compacting Folders | Compact folders]] for all accounts in the MainProfile and exit Thunderbird.  Restart Thunderbird in the SourceProfile, compact folders for all accounts, and exit Thunderbird. (It's not absolutely necessary to compact folders but it is recommended because it will tidy up the mailbox files and reduce the file sizes.)
[[Thunderbird : Tips : Compacting Folders | Compact folders]] for all accounts in the MainProfile, exit Thunderbird/Mozilla Suite/SeaMonkey, then restart the application in the SourceProfile.  Compact folders for all accounts then exit Thunderbird/Mozilla Suite/SeaMonkey. (It's not absolutely necessary to compact folders but it is recommended because it will tidy up the mailbox files and reduce the file sizes.)


==Copy the contents of the SourceProfile mail folders to the MainProfile==  
==Copy the contents of the SourceProfile mail folders to the MainProfile==  
Line 27: Line 27:
*If you are merging mail for the same e-mail address account, such as old mail from the SourceProfile which you wish to copy to the MainProfile,  first '''rename''' the  mail files with no extension  in your SourceProfile Mail account folder (or the backup copy) such as "Inbox" to OldInbox and "Sent" to OldSent but do not copy any of the ".msf files" (mail summary files).  Also copy any  ".sbd" folders (subfolders).   
*If you are merging mail for the same e-mail address account, such as old mail from the SourceProfile which you wish to copy to the MainProfile,  first '''rename''' the  mail files with no extension  in your SourceProfile Mail account folder (or the backup copy) such as "Inbox" to OldInbox and "Sent" to OldSent but do not copy any of the ".msf files" (mail summary files).  Also copy any  ".sbd" folders (subfolders).   


If you have numbered subfolders for the same mailserver, you will need to determine the correct account by either opening the Inbox or other mail file in a text editor to see the contents, or by looking at the mail account's server settings, Local Directory field from within Thunderbird's Account settings by opening Thunderbird in each profile.   
If you have numbered subfolders for the same mailserver, you will need to determine the correct account by either opening the Inbox or other mail file in a text editor to see the contents, or by looking at the mail account's server settings, Local Directory field from within the (Mail and Newsgroups) Account settings window by opening the application in each profile.   


'''Note:''' It's also possible to move the SourceProfile files into a pre-existing "'''.sbd'''" '''folder''' in the MainProfile, but you will need to be careful about naming conflicts as described above.
'''Note:''' It's also possible to move the SourceProfile files into a pre-existing "'''.sbd'''" '''folder''' in the MainProfile, but you will need to be careful about naming conflicts as described above.
Line 37: Line 37:
To move '''address books''' either export each address book from the SourceProfile as an LDIF file and then import each into the MainProfile, or directly copy the address book files. See [[Moving address books between profiles]] for further details.
To move '''address books''' either export each address book from the SourceProfile as an LDIF file and then import each into the MainProfile, or directly copy the address book files. See [[Moving address books between profiles]] for further details.


==Restart Thunderbird==
==Restart the application==
Restart using the MainProfile. Verify that the mail files you copied over  now appear in the folders pane and that you can view individual messages. Drag and drop messages/folders in the folders pane as desired. Delete any folders that you no longer need.  Exit Thunderbird, restart using the MainProfile, and double-check to make sure that all the mail you copied over is in fact where you expect to find it.
Restart Thunderbird or Mozilla Suite/SeaMonkey using the MainProfile. Verify that the mail files you copied over  now appear in the folders pane and that you can view individual messages. Drag and drop messages/folders in the folders pane as desired. Delete any folders that you no longer need.  Exit Thunderbird or Mozilla Suite/SeaMonkey, then restart using the MainProfile, and double-check to make sure that all the mail you copied over is in fact where you expect to find it.


When you're confident that you've successfully brought the mail, address books, and/or other files, delete the temporary profile backups, if you wish to regain the disk space and no longer need the backups.
When you're confident that you've successfully brought the mail, address books, and/or other files, delete the temporary profile backups, if you wish to regain the disk space and no longer need the backups.
Line 44: Line 44:
==See also==
==See also==
*[[Importing and exporting your mail]]
*[[Importing and exporting your mail]]
*[[Migrating settings to a new profile]]
*[[Transferring data to a new profile]]
 


[[Category:Profiles]]
[[Category:Profiles]]

Revision as of 21:20, 10 September 2007

This article provides a guide for users wishing to merge mail and address books from two Thunderbird or Mozilla Suite/SeaMonkey profiles.

There may be situations when you want to combine the mail, address books, message filters, or perhaps other files from two separate profiles. These could be two profiles on the same computer or two profiles on different computers. The mail you wish to combine could be from the same or different mail servers or for different email addresses for the same mail server. In the guide given below, MainProfile indicates your primary or "main" profile, where the copied data will end up. The SourceProfile is the profile that contains the data to be copied.

Become familiar with the profile contents

Inside each profile folder and subfolders you will find various files including "msgFilterRules.dat" "popstate.dat" and "training.dat" (see the Profile folder article for your application for more information on those files). You will also see a number of subfolders such as "ImapMail", if you've set up IMAP accounts, and "News", if you've set up newsgroup accounts. We won't be concerned with these subfolders, since those messages are stored on a remote server and are accessible from any profile. The mail files that we are concerned with are those stored in the "Mail" subfolder, which holds your downloaded mail messages.

Inside the "Mail" subfolder, you will find a "Local Folders" subfolder (which can be used to store sent newsgroup messages, IMAP mail and other saved mail). You will also find other subfolders for each mail account, typically named something like "pop.myisp.com" or "mail.myemailservice.net". (If you have recreated a mail account for the same mail server, such as for different e-mail addresses, or if you removed and then added back the mail account for the same e-mail address, then you will have numbered account folders, such as pop.myisp-1.com and pop.myisp-2.com.) Inside these Mail subfolders are your mail files, with names such as "Inbox", "Sent", "Drafts", etc., with no extension. These are the files that contain your actual messages. Each will have a corresponding index file with the ".msf" extension, such as "Inbox.msf", "Sent.msf", and "Drafts.msf". These .msf files are index files and it is not necessary to copy them to the MainProfile, as they will be regenerated if needed. There may also be folders named with the ".sbd" extension, which usually represent mail folders that contain one or more subfolders.

Familiarize yourself with the contents of both profile folders and how they are organized. You should open Thunderbird or Mozilla Suite/SeaMonkey in both the MainProfile and the SourceProfile, if possible, and make a note of the Local Directory name used for each mail account, as shown in the account's server settings, for those mail accounts you will be adding or merging. For example, jsmith@myisp.com's mail may be stored in the pop.myisp.com folder and james@myisp.com account's mail may be stored in the pop.myisp-1.com folder in the SourceProfile. Be aware that the MainProfile may have different numbered subfolder names assigned for those e-mail addresses.

Make a backup of both profile folders

Completely close Thunderbird or Mozilla Suite/SeaMonkey. Make sure you also close any open mail messages, download windows, Quick Launch, etc.

Locate and make a backup copy of the profile folder for your MainProfile, where you will be copying the new data files, so that in case things go wrong, you can restore the original data to your Main Profile. Also make a backup copy of the SourceProfile, as you may need to rename certain files.

Add new mail accounts, if needed, in the MainProfile

If your SourceProfile (source of the data) has additional mail accounts that you want to use in the MainProfile for downloading and sending mail, either for another mailserver or a different e-mail address for the same mailserver, add these mail accounts in the MainProfile. (To start up with the MainProfile, you may need to use the Profile Manager.) To create each new account in the MainProfile, go to "Tools -> Account Settings", click on the "Add Account" button, and fill in the account settings as needed. Do not download new mail, or, if you do, copy the new messages to Local Folders (create a new mailbox and copy the messages there) since you will be relacing the mail files in the added account with the mail files from the SourceProfile. Be aware that adding additional accounts for the same mailserver will add a new numbered account sub-folder to the MainProfile's Mail folder, for example, pop.myisp-1.com and pop.myisp-2.com for additional e-mail address accounts for the same pop.myisp.com mailserver. These account subfolders are identified in the Local Directory field in the server settings for each account, within the Thunderbird Account Settings or Mozilla Suite/SeaMonkey Mail and Newsgroups Account Settings window.

Compact the mail files in each profile

Compact folders for all accounts in the MainProfile, exit Thunderbird/Mozilla Suite/SeaMonkey, then restart the application in the SourceProfile. Compact folders for all accounts then exit Thunderbird/Mozilla Suite/SeaMonkey. (It's not absolutely necessary to compact folders but it is recommended because it will tidy up the mailbox files and reduce the file sizes.)

Copy the contents of the SourceProfile mail folders to the MainProfile

Decide which mail files you will copy from the SourceProfile to the MainProfile.

  • If you added a new mailserver account to the MainProfile, copy the contents of the SourceProfile's Mail account folder for that mailserver into the corresponding Mail account folder in the MainProfile, overwriting the files of the same name (which should be empty, if you didn't download new mail to the MainProfile for the new mailserver account).
  • If you created a new email address account for the same mailserver in the MainProfile, decide which account in the SourceProfile corresponds to that emailaddress account, and then copy the entire contents of the SourceProfile's Mail account subfolder to the corresponding MainProfile's Mail subfolder account folder, overwriting the existing files. For example, you may be copying files from a folder named pop.myisp-2.com from the SourceProfile to a folder named pop.myisp.1.com in the MainProfile, depending on how many times you've created a mail account for the same mail server.
  • If you are merging mail for the same e-mail address account, such as old mail from the SourceProfile which you wish to copy to the MainProfile, first rename the mail files with no extension in your SourceProfile Mail account folder (or the backup copy) such as "Inbox" to OldInbox and "Sent" to OldSent but do not copy any of the ".msf files" (mail summary files). Also copy any ".sbd" folders (subfolders).

If you have numbered subfolders for the same mailserver, you will need to determine the correct account by either opening the Inbox or other mail file in a text editor to see the contents, or by looking at the mail account's server settings, Local Directory field from within the (Mail and Newsgroups) Account settings window by opening the application in each profile.

Note: It's also possible to move the SourceProfile files into a pre-existing ".sbd" folder in the MainProfile, but you will need to be careful about naming conflicts as described above.

Local Folders

The contents of the Local Folders can be copied as above, depending on whether you wish to overwrite (replacing existing files) or merge, by renaming the SourceProfile files before copying to the MainProfile's Mail Local Folders subfolder.

Address books

To move address books either export each address book from the SourceProfile as an LDIF file and then import each into the MainProfile, or directly copy the address book files. See Moving address books between profiles for further details.

Restart the application

Restart Thunderbird or Mozilla Suite/SeaMonkey using the MainProfile. Verify that the mail files you copied over now appear in the folders pane and that you can view individual messages. Drag and drop messages/folders in the folders pane as desired. Delete any folders that you no longer need. Exit Thunderbird or Mozilla Suite/SeaMonkey, then restart using the MainProfile, and double-check to make sure that all the mail you copied over is in fact where you expect to find it.

When you're confident that you've successfully brought the mail, address books, and/or other files, delete the temporary profile backups, if you wish to regain the disk space and no longer need the backups.

See also