Importing and exporting your mail: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(Polarbar Mailer / J Street Mailer)
m (fixed broken link for Windows Contacts help)
 
(40 intermediate revisions by 4 users not shown)
Line 2: Line 2:


==Introduction==
==Introduction==
If your old email client is still installed the easiest solution is to import the e-mail , address books and settings using [[Menu_differences_in_Windows%2C_Linux%2C_and_Mac | Tools -> Import]].  However, if its not installed or Thunderbird doesn't know how to import data from it typically you need to find some way to export or convert your old email clients mail files to either .EML or mbox files and some way to export or convert the address books to .CSV or .LDIF files.  
If your old email client is still installed, the easiest solution is to import the e-mail, address books and settings using [[Menu_differences_in_Windows%2C_Linux%2C_and_Mac | Tools -> Import]].  If it is not installed or Thunderbird doesn't know how to import data from it, typically you need to find some way to export or convert your old email client's mail files to either .EML or mbox files, and some way to export or convert the address books to .CSV or .LDIF files.  And if you just need to transfer email between email clients, another option is [[ #Migrating messages using a mail server |doing so indirectly via a mail server]].


Thunderbird, Netscape, Mozilla Suite and SeaMonkey use mbox files to store the messages for a folder. The [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension] can import and export mbox and .EML files. Many email clients use mbox files (regardless of whether they use no file extension, .mbx or .mbox as the file extension) to store messages or provide a way to export folders as mbox or .EML files due to the popularity of Eudora and Outlook Express. Sometimes email clients use "Unix format" to refer to a mbox file since the format was originally developed for Unix systems.  
Thunderbird, Netscape, Mozilla Suite and SeaMonkey use mbox files to store the messages for a folder. The [http://www.nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension] can import and export mbox and .EML files. Many email clients use mbox files (regardless of whether they use no file extension, .mbx or .mbox as the file extension) to store messages or provide a way to export folders as mbox or .EML files due to the popularity of Eudora and Outlook Express. Sometimes email clients use "Unix format" to refer to a mbox file since the format was originally developed for Unix systems.  


If you have problems importing .EML files using the ImportExportTools extension try using [http://home.arcor.de/luethje/prog/eml2m_en.htm eml2mbx] to convert the .EML files to a mbox file and then import the mbox file using the ImportExportTools extension. A Google search will find several eml to mbox conversion programs. Whats unusual about this one is that provides a lot of control over how it converts the .EML files using a "eml2mbx.ini" file.   
If you have problems importing .EML files using the ImportExportTools extension try using [http://home.arcor.de/luethje/prog/eml2m_en.htm eml2mbx] to convert the .EML files to a mbox file and then import the mbox file using the ImportExportTools extension. A Google search will find several eml to mbox conversion programs. Whats unusual about this one is that provides a lot of control over how it converts the .EML files using a "eml2mbx.ini" file.   


If your old email client supports exporting the address book as either a .CSV or .LDIF file you can import it using [[Menu_differences_in_Windows%2C_Linux%2C_and_Mac | Tools -> Import]] -> Address books -> Text Files. If not you might be able to use a program like [http://mysite.verizon.net/zakharin/software/Dawn/ Dawn] to convert the address book to a .CSV file and then import it.  
If your old email client supports exporting the address book as either a .CSV or .LDIF file you can import it using [[Menu_differences_in_Windows%2C_Linux%2C_and_Mac | Tools -> Import]] -> Address books -> Text Files.  


No matter how you import or export your e-mail its a good idea to [[Profile_backup | back up your e-mail first]] in case something unexpected happens.
No matter how you import or export your e-mail its a good idea to [[Profile_backup | back up your e-mail first]] in case something unexpected happens.


If you're moving from a old PC to a new one its typically easiest (and safest) to install Thunderbird on the old PC, import your e-mail, settings and address books and then [[Moving_your_profile_folder | move the Thunderbird profile]] to the new PC.  
If you're moving from a old PC to a new one its typically easiest (and safest) to install Thunderbird on the old PC, import your e-mail, settings and address books and then [[Moving_your_profile_folder | move the Thunderbird profile]] to the new PC.


==Specific programs==
==Specific programs==
Line 20: Line 20:
** If all your e-mail is on AOL's server, [[Using AOL and AIM mail|configure Thunderbird for AOL]] and download the mail.
** If all your e-mail is on AOL's server, [[Using AOL and AIM mail|configure Thunderbird for AOL]] and download the mail.
** (Windows only) Export from AOL to Outlook Express using [http://www.connectedsw.com/Questions/57266 ePreserver] or [http://trueswitch.com/ TrueSwitch] then import from there into Thunderbird (see instructions below).
** (Windows only) Export from AOL to Outlook Express using [http://www.connectedsw.com/Questions/57266 ePreserver] or [http://trueswitch.com/ TrueSwitch] then import from there into Thunderbird (see instructions below).
'''Older versions of Apple OS X Mail.app'''
* Each local Mail.app folder contains an mbox file that you can rename and move into Thunderbird's Local Folders directory ([http://www.macosxhints.com/article.php?story=20040401075611985 more details]). This doesn't work for cached IMAP server messages; [http://www.weirdkid.com/products/emailchemy Emailchemy] will convert Mac OS X 10.3's CachedMessages folders. This does not work for Mail 2.0 as shipped in Tiger because Apple has dropped the mbox format in favor of storing messages in individual files so they're Spotlight searchable.


'''Apple OS X Mail.app'''
'''Apple OS X Mail.app'''
* See [http://forums.mozillazine.org/viewtopic.php?t=363915 here] for instructions on how to import the messages. You can export your address books by dragging them to the desktop, creating a vcard file, and then uploading it to this [http://labs.brotherli.ch/vcfconvert/ web page] which converts it to a .csv or .ldif file.
* [[Import from Mail.app]]  
 
* [[Export to Mail.app | Export from Thunderbird]]
* [[Export to Mail.app | Export from Thunderbird]]


Line 35: Line 31:


* Use File -> Export -> Mailbox to export the mail folders in "Netscape" format. That should create mbox files. Rename them to have no file extension and import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension]. Use File -> Export -> Address Book to export the address book as a .csv or .ldif file and then import it in Thunderbird using Tools -> Import -> Address Books -> Text File. See [http://www.pocomail.com/poco/help/managing.html here] for more information.
* Use File -> Export -> Mailbox to export the mail folders in "Netscape" format. That should create mbox files. Rename them to have no file extension and import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension]. Use File -> Export -> Address Book to export the address book as a .csv or .ldif file and then import it in Thunderbird using Tools -> Import -> Address Books -> Text File. See [http://www.pocomail.com/poco/help/managing.html here] for more information.
'''Becky!'''
* The [https://github.com/mozilla-japan/becky-import-addon/wiki Becky Import Add-on] imports messages from [http://www.rimarts.co.jp/becky.htm Becky! Internet Mail]. You can report any errors in the add-on at [https://bugzilla.mozilla.org/show_bug.cgi?id=684455 this bug report].
   
   
'''Calypso'''
'''Calypso'''
Line 49: Line 49:


'''Entourage'''
'''Entourage'''
* Open Entourage and drag and drop the folders to the desktop. That will create mbox files with an .mbox file extension. Either drag and drop them to the appropriate directory in your Thunderbird profile or import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension].
 
Open Entourage and drag and drop the folders to the desktop. That will create mbox files with an .mbox file extension. Either drag and drop them to the appropriate directory in your Thunderbird profile or import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools extension].
 
'''Evolution'''
 
[http://maketecheasier.com/how-to-migrate-from-evolution-to-thunderbird-in-ubuntu-intrepid/2008/12/04 How To Migrate From Evolution To Thunderbird In Ubuntu Intrepid] describes how to migrate the mail, calender, tasks and address book. It was written when Evolution defaulted to using mbox files, just like Thunderbird does. Evolution 3.2.0 and later uses maildir files. If you created your Evolution profile using a version that defaulted to maildir you will need to use a tool to convert maildir files into mbox files for multiple folders, such as  [https://github.com/tdb/maildirarc maildirarc] or [https://github.com/jooooooon/maildir2mbox maildir2mbox]. Then you can import the mbox files using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] add-on, and resume using the article for how to import your other data.
 
'''Groupwise'''
 
Groupwise supports SOAP, POP and IMAP accounts. The easiest way to migrate mail would be to drag and drop folders from a Groupwise IMAP account in Thunderbird to another IMAP account (such as Gmail) in Thunderbird. If thats not possible
[http://www.novell.com/communities/node/2273/gwsave GWSave] does a bulk export of messages to .eml files. You could use the  [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] add-on to import them into Thunderbird.
 
Thunderbird supports using LDAP servers as address books so if your Groupwise server is configured to provide that, you can keep using it. Some other solutions:
 
* [http://www.novell.com/coolsolutions/tools/14133.html Novell Cool Solutions] has a tool to export address book group members to a .csv file. You can use Tools -> Import -> Address books -> Text files to import that .csv file in Thunderbird. They also have a [http://www.novell.com/coolsolutions/tools/13998.html GroupWise Address Book Wizard] that can export an address book as .csv files.
 
* [http://www.slewis.org/ GWIMPEXP] exports the address book in a format that Thunderbird understands.
 
Some other Groupwise related tools are [http://www.novell.com/coolsolutions/tools/byproduct/24.html here]. Groupwise won't run unless its the default email client. If you try to have both Groupwise and Thunderbird co-exist, you'll need to uncheck Tools -> Options -> Advanced -> General -> "Always check to see if Thunderbrid is the default email client on startup" within Thunderbird.


'''Google Gmail'''
'''Google Gmail'''
Line 60: Line 78:
'''Juno''' (the email client, not the ISP)
'''Juno''' (the email client, not the ISP)


* Use [http://mysite.verizon.net/zakharin/software/Dawn/ Dawn] to convert the address book to a .LDIF file and then import it using Tool -> Import -> Address books -> Text file. Use[http://ephemeraleuphoria.com/media/juno5bdb.html Juno5bdb] to convert the folders to mbox files. Then import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension.
*Use[http://ephemeraleuphoria.com/media/juno5bdb.html Juno5bdb] to convert the folders to mbox files. Then import them using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension. See [http://email.wikia.com/wiki/Juno_Email_Clients] if you use a version of the Juno client before 5.0.


'''MH, mh-e, nmh, xmh, exmh'''
'''MH, mh-e, nmh, xmh, exmh'''
Line 74: Line 92:
'''Outlook and Outlook Express'''
'''Outlook and Outlook Express'''
* [[Import from Outlook Express | Import to Thunderbird]]
* [[Import from Outlook Express | Import to Thunderbird]]
* [[Export mail into Outlook (Express) or Apple Mail | Export from Thunderbird]]
* [[Export mail into Outlook (Express) or Apple Mail | Export from Thunderbird]]<p>See [[Mail Utilities]] for some utilities that can be used to import messages if you no longer have the Microsoft email client installed. For example, you can use MailStore Home to export a .pst file as .eml files and then use the ImportExportTools add-on to import them into Thunderbird. There is also a trial version of a [http://www.mboxtopstconverter.recoveryfiles.org/ mbox to .pst file converter] from Kernel Data Recovery that can save the mail in an existing .pst file or create a new one.


'''Pegasus'''
'''Pegasus'''
Line 87: Line 105:


'''The Bat!'''
'''The Bat!'''
* Export the folders using the "Unix Mailbox" format (that's compatible with the mbox format used by Thunderbird) and then use the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension to import them.
* Use the [https://addons.mozilla.org/en-US/thunderbird/addon/birdimport/ Bird Import] add-on to import the folders. Unfortunately the add-on uses a function that is no longer available. If you want to use it install Thunderbird 8.0 in a different directory per [[Go back to an old version of Thunderbird]] and use it to import the mail. Your other version of Thunderbird will use the same profile.
 
* If you don't want to install an older version of Thunderbird you could export the folders using the "Unix Mailbox" format (that's compatible with the mbox format used by Thunderbird) and then use the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension to import them.<p>Its also possible to select multiple messages in a folder using Control-A and then drag and drop them to a folder in Thunderbird. If you have problems doing this try hovering the mouse over Thunderbird in the task bar, letting it change the windows focus, and then selecting the folder you want to move the message to, before releasing the mouse button. [http://forums.mozillazine.org/viewtopic.php?f=39&t=2206433]
 
* The Bat! supports IMAP accounts. See the "Using IMAP remote folders as an intermediary" section for another way to migrate your mail.
 
'''Thunderbird'''
 
* Thunderbird doesn't have a built-in capability to export, import or merge profiles. See [[Importing folders]] for how to import/export folders using the ImportExportTools add-on, [[Moving address books between profiles]] for how to import/export address books, and [[Transferring_data_to_a_new_profile_-_Thunderbird | Transfer data to a new profile]] for a detailed description of how to migrate every file in the profile. If you're merging profiles its easiest to just pick the profile with the most accounts, re-create the missing accounts, and then import the mail folders and address books from the other profiles.</p><p>See [[Moving your profile folder]] if you want to move a profile from one machine to another, and its not practical to just backup the profile with [[MozBackup]], copy the *.pcv file it creates to the other machine, install Thunderbird, and then restore the profile using Mozbackup.


'''Webmail''' (including Google Gmail, MSN Hotmail, Netscape Mail, or Yahoo)
'''Webmail''' (including Google Gmail, MSN Hotmail, Netscape Mail, or Yahoo)
Line 93: Line 119:
* Export from Thunderbird: The [[Mail_Utilities#Gmail_loader | Gmail loader]] extension can upload Mbox files to Gmail.
* Export from Thunderbird: The [[Mail_Utilities#Gmail_loader | Gmail loader]] extension can upload Mbox files to Gmail.


'''Windows mail (Vista)'''
'''Windows Mail (aka Windows Live Mail)'''
* Import to Thunderbird: Windows mail stores the messages as .EML files. You can use the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension to import .EML files. It lets you select multiple .EML files at the same time.  
* Import to Thunderbird: </p><p>Windows mail stores the messages as .EML files. They are normally stored within the C:\AppData\Local\Microsoft\Windows Mail directory. If you can't find them look in the Tools -> Options -> Advanced -> Maintenance -> Store Folder to find where Windows Mail stored them. The best way to import .EML files is with the [http://www.nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] add-on, it lets you import all of the .EML files in a directory in one step using "Tools -> ImportExportTools -> Import all eml files from a directory". However, if you only have a few .EML files you could drag and drop them from Windows Explorer to a folder in Thunderbird instead. </p><p>Export the contacts using the [https://web.archive.org/web/20160407200138/http://windows.microsoft.com/en-us/windows/import-export-change-format-contacts#1TC=windows-7 Windows Contacts] program as a .csv file. You can import it using Tools -> Import -> Address books -> Text Files. See [http://www.mydigitallife.info/export-copy-and-transfer-hotmail-contacts-to-gmail-outlook-or-another-account/ this article] for more information about how to export the contacts.</p>
* Export from Thunderbird: Export the messages as .EML files using the [http://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension.
* Export from Thunderbird: <p>Export the messages as .EML files using the [http://www.nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension. Then use File -> Import -> Messages in Windows Live Mail to import all of them. If it doesn't like the layout of the directory tree you can always launch Windows Live Mail, open a folder, and drag and drop the .EML files you want to import, to that folder. Outlook Express and Windows Mail support importing messages by dragging and dropping .EML files too. </p>


==Migrating messages using a mail server==
==Migrating messages using a mail server==
Line 104: Line 130:
'''Using IMAP remote folders as an intermediary'''
'''Using IMAP remote folders as an intermediary'''


If you have problems migrating your mail you might consider signing up for a free IMAP account and use it as a intermediary to move your mail. Think of it as a file share that knows about mail folders. You could create a 7GB IMAP account for Gmail using [http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite#Add_a_IMAP_account these instructions],or a 2GB IMAP account with AIM using [[Using_AOL_Mail_with_Mozilla | these instructions]] . When you're done moving your mail you can delete the IMAP account in both email clients.
If you have problems migrating your mail you might consider signing up for a free IMAP account and use it as a intermediary to move your mail. Think of it as a file share that knows about mail folders. You could create a 15GB IMAP account for Gmail using [[Using_Gmail_with_Thunderbird_and_Mozilla_Suite#Add_a_IMAP_account | these instructions]], a 5GB IMAP account with Outlook using these [[Hotmail | instructions]] or a 1TB IMAP account with Yahoo using [[Yahoo | these instructions]] . When you're done moving your mail you can delete the IMAP account in both email clients.


IMAP supports remote folders (on the mail server) that you can access just like they're local folders. You can copy/move messages/folders to/from them, even drag and drop a entire folder hierarchy. This would let you preserve most of the message status information (what messages have been replied to etc.) and the folder hierarchy. It should cause the least problems since you're using a Internet standard that both email clients support, rather than trying to convert between two partially documented file formats etc.  
IMAP supports remote folders (on the mail server) that you can access just like they're local folders. You can copy/move messages/folders to/from them, even drag and drop a entire folder hierarchy. This would let you preserve most of the message status information (what messages have been replied to etc.) and the folder hierarchy. It should cause the least problems since you're using a Internet standard that both email clients support, rather than trying to convert between two partially documented file formats etc.  
Line 112: Line 138:
If the performance delay due to sending a lot of messages over the network is a issue you could temporarily install a local IMAP server and use it to provide the remote folders. [http://www.hmailserver.com/ hMailServer] is an open source IMAP server for Windows thats easy to install.  
If the performance delay due to sending a lot of messages over the network is a issue you could temporarily install a local IMAP server and use it to provide the remote folders. [http://www.hmailserver.com/ hMailServer] is an open source IMAP server for Windows thats easy to install.  


'''Use Gmail Loader to load MailDir, MH and several other unsupported mail formats'''
'''Use a Gmail specific loader'''
 
You could sign up for a free Gmail account, upload the messages using a utility such as [http://www.marklyon.org/gmail/default.htm Gmail Loader (GML)], [[Gmail | configure Thunderbird to use Gmail]], and then download your messages as new mail.
 
The Gmail Loader reads messages from your existing mail files and forwards them to either the Inbox or Sent Mail folder in a Gmail account. It supports Mbox (what Mozilla uses), MailDir (Qmail, others), MMDF (Mutt), MH (NMH), and Babyl (Emacs RMAIL) formats. It hides the fact that the message is forwarded and eliminates the grunt work of individually forwarding all of your messages. GML has versions for Windows (all files needed are included) and Linux / OS X (requires you to install Python).
 
[http://www.softpedia.com/get/Internet/E-mail/Mail-Utilities/Google-webMail-Filer-for-Thunderbird.shtml Google webMail Filer for Thunderbird] is a utility to upload messages from Thunderbird's mail folders to your Gmail account. It deals with issues such as not uploading duplicates, Unicode, Gmail nested labels and the Google mail quota that its not clear that GML knows about. Its only available for Windows (its a .NET program that won't run under Wine or using Mono). Its a better way to upload mail to Gmail but since it is Thunderbird specific program that only knows about mbox files its not useful if you are trying to migrate messages from another email client. Version 2.9.0.0 (released 2013-01-29) is the last version available. The [https://www.linkedin.com/in/mohammed-khallaf-963b6345 author] appears to have stopped all work on the software. Ghacks has an article about the utility [http://www.ghacks.net/2011/01/07/google-webmail-filer-for-thunderbird/ here].


The [http://www.marklyon.org/gmail/default.htm Gmail Loader] reads messages from your existing mail files and forwards them to either the Inbox or Sent Mail folder in a Gmail account. It supports Mbox (what Mozilla uses), MailDir (Qmail, others), MMDF  (Mutt), MH (NMH), and Babyl (Emacs RMAIL) formats. It's not clear yet whether it hides the fact that the message is forwarded, but it does eliminate the grunt work of individually forwarding all of your messages.
[http://tools.google.com/dlpage/outlookmigration Google Apps Migration for Microsoft Outlook] can be used to migrate messages, contacts and calendars from Outlook to a free Google Apps account. It replaces the Google Email Uploader program. You can create a POP or IMAP account for Google Apps in Thunderbird.


You could sign up for a free Gmail account, and upload the messages, [[Using_Gmail_with_Thunderbird_and_Mozilla_Suite | configure Thunderbird to use Gmail]], and then download your messages as new mail. The program is written in Python and supports Windows, Linux and OSX. However, you do not need to install Python if you're using it with Windows.
[http://gmvault.org/ GMVault] backs up your Gmail mail as a set of directories of .EML files. It can also be used to [http://gmvault.org/in_depth.html upload those files]. Its not clear how easy it would be to export your mail into the format it expects.


==Miscellaneous==
==Miscellaneous==
* [http://mozillanews.org/?article_date=2004-12-07+16-19-25 This guide] provides extensive help for moving to Thunderbird from other programs.
* One of these [[Mail Utilities]] may help.
* One of these [[Mail Utilities]] may help.
* The [http://www.mozilla.org/support/thunderbird/faq#q2.2 Official Thunderbird FAQ] lists tips for a few additional programs.
* The [http://www.mozilla.org/support/thunderbird/faq#q2.2 Official Thunderbird FAQ] lists tips for a few additional programs.
Line 127: Line 158:
==Mbox files==
==Mbox files==


There are four main versions of the mbox format. Thunderbird, Netscape , Mozilla Suite and SeaMonkey use a slightly modified version of the mboxrd variant of this format. Eudora uses a slightly modified version of the mboxo variant. Most Windows email clients that use mbox files will use an mboxo or mboxrd version, and you should have little trouble importing them. Under Linux you're more likely to run into an mboxcl or mboxcl2 version, which is incompatible. Both Kmail and Evolution use a compatible version. You might try [http://kmail.kde.org/manual/importing.html migrating your messages to Kmail] as an intermediate step since it supports importing numerous formats.
There are four main versions of the mbox format. Thunderbird, Mozilla Suite, Netscape, Portable Thunderbird, Postbox, Spicebird, SeaMonkey and the open source version of Eudora use a slightly modified version of the mboxrd variant of this format. The proprietary version of Eudora uses a slightly modified version of the mboxo variant. Most Windows email clients that use mbox files will use a mboxo or mboxrd version, and you should have little trouble importing them. Under Linux you're more likely to run into an mboxcl or mboxcl2 version, which is incompatible. Both Kmail and Evolution use a compatible version. You might try [http://kmail.kde.org/manual/importing.html migrating your messages to Kmail] as an intermediate step since it supports importing numerous formats.


See the following links for more technical information about this format:
See the following links for more technical information about this format:
* [http://en.wikipedia.org/wiki/Mbox Wikipedia article about mbox]  
* [http://en.wikipedia.org/wiki/Mbox Wikipedia article about mbox]  
* [http://www.qmail.org/qmail-manual-html/man5/mbox.htm Qmail documentation]
* [http://www.qmail.org/qmail-manual-html/man5/mbox.html Qmail mbox documentation]
* [http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html "mbox" is a family of several mutually incompatible mailbox formats]  
* [http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html "mbox" is a family of several mutually incompatible mailbox formats]  
* [http://www.jwz.org/doc/content-length.html Configuring Netscape Mail On Unix: Why the Content-Length Format is Bad].
* [http://www.jwz.org/doc/content-length.html Configuring Netscape Mail On Unix: Why the Content-Length Format is Bad].
Line 139: Line 170:
Unless you are an advanced user its generally preferable to use an application to import or export a folder since that typically sanitizes the file to minimize any incompatibilities. If you use IMAP's optional offline mode to create a local copy of remote folders, think ahead about how you will deal with any potential synchronization issues. To manually import/export mbox formatted files:
Unless you are an advanced user its generally preferable to use an application to import or export a folder since that typically sanitizes the file to minimize any incompatibilities. If you use IMAP's optional offline mode to create a local copy of remote folders, think ahead about how you will deal with any potential synchronization issues. To manually import/export mbox formatted files:


# Create the e-mail account you want to use for the imported mail (unless you will use an existing account).
# Identify the e-mail account you want to use for the imported mail. You can use the Local Folders account, or some other account, or you can create a new account specially.
# In [[Account settings|Account Settings]], go to the Local Folders account's main page to find its Local directory path. Or, to import the folder into some other account, go to the account's Server Settings page to find its Local directory path. Make a note of the path.
# Exit Thunderbird or Mozilla Suite.
# Exit Thunderbird or Mozilla Suite.
# [[Profile_backup | Back up your profile]] or Mail directory, especially if you plan to overwrite existing mbox files.
# [[Profile_backup | Back up your profile]] or Mail directory, especially if you plan to overwrite existing mbox files.
# Find the mbox files in your account directory:  In your [[Profile folder]], you will see a "Mail" directory and in there you'll see one account directory named for each account.
# Copy the mbox files you are importing to the local directory that you identified in step 2. For example, copy "Inbox" (not Inbox.msf) to the account's local directory.<br>'''Note:''' If you want to keep the existing mbox file of the same name in the new location,  rename the file you wish to import before copying it over.  For example, rename "Inbox" to "InboxOld" and "Sent" to "SentOld".   
# Copy the mbox files you are importing,  for example, copy "Inbox" (not inbox.msf) to the Mail account directory where you want to see the mail. '''Note:''' If you want to keep the existing mbox file of the same name in the new location,  rename the file you wish to import before copying it over.  For example, rename "Inbox" to "InboxOld" and "Sent" to "SentOld".   
# Open Thunderbird or Mozilla Suite. As it starts up, the application automatically discovers new mbox files and makes them into folders. A folder for each file you copied should be displayed.
# Open Thunderbird or Mozilla Suite. A folder for each file you copied should be displayed.
# Open each folder and verify that it contains the correct number of e-mails, that they are readable, and that you can open attachments.  Sometimes, differences between mbox formats cause multiple emails to be combined into one larger e-mail or can make some e-mails unreadable.   
# Open each folder and verify that it contains the correct number of e-mails, that they are readable, and that you can open attachments.  Sometimes, differences between mbox formats cause multiple emails to be combined into one larger e-mail or can make some e-mails unreadable.   


Line 152: Line 183:
* [[Emulate Microsoft email clients]]
* [[Emulate Microsoft email clients]]
* [[Getting started with Thunderbird]]
* [[Getting started with Thunderbird]]
* [[Import .MSG files]]
* [[Importing folders]]
* [[Importing folders]]
* [[Keep it working - Thunderbird]]
* [[Keep it working - Thunderbird]]

Latest revision as of 04:12, 23 February 2018

This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).

Introduction

If your old email client is still installed, the easiest solution is to import the e-mail, address books and settings using Tools -> Import. If it is not installed or Thunderbird doesn't know how to import data from it, typically you need to find some way to export or convert your old email client's mail files to either .EML or mbox files, and some way to export or convert the address books to .CSV or .LDIF files. And if you just need to transfer email between email clients, another option is doing so indirectly via a mail server.

Thunderbird, Netscape, Mozilla Suite and SeaMonkey use mbox files to store the messages for a folder. The ImportExportTools extension can import and export mbox and .EML files. Many email clients use mbox files (regardless of whether they use no file extension, .mbx or .mbox as the file extension) to store messages or provide a way to export folders as mbox or .EML files due to the popularity of Eudora and Outlook Express. Sometimes email clients use "Unix format" to refer to a mbox file since the format was originally developed for Unix systems.

If you have problems importing .EML files using the ImportExportTools extension try using eml2mbx to convert the .EML files to a mbox file and then import the mbox file using the ImportExportTools extension. A Google search will find several eml to mbox conversion programs. Whats unusual about this one is that provides a lot of control over how it converts the .EML files using a "eml2mbx.ini" file.

If your old email client supports exporting the address book as either a .CSV or .LDIF file you can import it using Tools -> Import -> Address books -> Text Files.

No matter how you import or export your e-mail its a good idea to back up your e-mail first in case something unexpected happens.

If you're moving from a old PC to a new one its typically easiest (and safest) to install Thunderbird on the old PC, import your e-mail, settings and address books and then move the Thunderbird profile to the new PC.

Specific programs

America Online (AOL)

  • Import to Thunderbird:

Apple OS X Mail.app

Apple iPod (contacts and calendar only)

Barca and/or PocoMail

  • Use File -> Export -> Mailbox to export the mail folders in "Netscape" format. That should create mbox files. Rename them to have no file extension and import them using the ImportExportTools extension. Use File -> Export -> Address Book to export the address book as a .csv or .ldif file and then import it in Thunderbird using Tools -> Import -> Address Books -> Text File. See here for more information.

Becky!

Calypso

  • It uses its own storage format to store folders in a .box file but provides an archive option to export folders as mbox files, which is what Thunderbird uses. You could use the ImportExportTools extension to import the folders. Another possibility would be to upgrade to Courier email client (its follow-on), let it import your data, and then migrate from Courier to Thunderbird using Courex.

Courier (Rose City)

  • You can export both the folders and address books using Courex.

Eudora

Eudora is no longer being sold by Qualcomm. They have created a open source version based on Thunderbird. See this article for more information.

Entourage

Open Entourage and drag and drop the folders to the desktop. That will create mbox files with an .mbox file extension. Either drag and drop them to the appropriate directory in your Thunderbird profile or import them using the ImportExportTools extension.

Evolution

How To Migrate From Evolution To Thunderbird In Ubuntu Intrepid describes how to migrate the mail, calender, tasks and address book. It was written when Evolution defaulted to using mbox files, just like Thunderbird does. Evolution 3.2.0 and later uses maildir files. If you created your Evolution profile using a version that defaulted to maildir you will need to use a tool to convert maildir files into mbox files for multiple folders, such as maildirarc or maildir2mbox. Then you can import the mbox files using the ImportExportTools add-on, and resume using the article for how to import your other data.

Groupwise

Groupwise supports SOAP, POP and IMAP accounts. The easiest way to migrate mail would be to drag and drop folders from a Groupwise IMAP account in Thunderbird to another IMAP account (such as Gmail) in Thunderbird. If thats not possible GWSave does a bulk export of messages to .eml files. You could use the ImportExportTools add-on to import them into Thunderbird.

Thunderbird supports using LDAP servers as address books so if your Groupwise server is configured to provide that, you can keep using it. Some other solutions:

  • Novell Cool Solutions has a tool to export address book group members to a .csv file. You can use Tools -> Import -> Address books -> Text files to import that .csv file in Thunderbird. They also have a GroupWise Address Book Wizard that can export an address book as .csv files.
  • GWIMPEXP exports the address book in a format that Thunderbird understands.

Some other Groupwise related tools are here. Groupwise won't run unless its the default email client. If you try to have both Groupwise and Thunderbird co-exist, you'll need to uncheck Tools -> Options -> Advanced -> General -> "Always check to see if Thunderbrid is the default email client on startup" within Thunderbird.

Google Gmail

Incredimail

Juno (the email client, not the ISP)

  • UseJuno5bdb to convert the folders to mbox files. Then import them using the ImportExportTools extension. See [1] if you use a version of the Juno client before 5.0.

MH, mh-e, nmh, xmh, exmh

  • The MH e-mail client and is descendants store each message in a seperate file using the MH (Message Handler) format. The e-mail client is made up of several programs. Use packf to convert all of the messages in each directory into a mbox file, and copy it to the local folders directory in your Thunderbird profile. For example, if you have a folder called SAVED the following command will create a mbox file called "SAVED_mbox." that contains all the emails from your SAVED directory.
% packf +SAVED -mbox -file SAVED_mbox

Mozilla Suite and Netscape 7

Outlook and Outlook Express

  • Import to Thunderbird
  • Export from Thunderbird

    See Mail Utilities for some utilities that can be used to import messages if you no longer have the Microsoft email client installed. For example, you can use MailStore Home to export a .pst file as .eml files and then use the ImportExportTools add-on to import them into Thunderbird. There is also a trial version of a mbox to .pst file converter from Kernel Data Recovery that can save the mail in an existing .pst file or create a new one.

Pegasus

PMM 2000

  • This thread has a PHP script and a similar program in Pascal that could be used to convert the messages. The last poster wrote a program in Delphi that you can get for the asking if you contact him. PMM 2000 stores each message in a .msg file (but not in a rfc-conform format). For each folder you could modify each message by switching two lines (look at an existing mbox file first to get an idea of what to do) and then copying it into the appropriate mbox file using a text editor.

Polarbar Mailer / J Street Mailer

  • Both use .pop files that are actually .EML files to store messages. Rename them to use a .EML file extension and import them using the ImportExportTools extension. There is no problem converting messages from J Street Mailer. However, Polarbar Mailer uses a X-DateReceived: header instead of a Date: header in messages in the Sent folder. You need to edit those messages with a text editor and change X-DateReceived: to Date: before importing the messages.

The Bat!

  • Use the Bird Import add-on to import the folders. Unfortunately the add-on uses a function that is no longer available. If you want to use it install Thunderbird 8.0 in a different directory per Go back to an old version of Thunderbird and use it to import the mail. Your other version of Thunderbird will use the same profile.
  • If you don't want to install an older version of Thunderbird you could export the folders using the "Unix Mailbox" format (that's compatible with the mbox format used by Thunderbird) and then use the ImportExportTools extension to import them.

    Its also possible to select multiple messages in a folder using Control-A and then drag and drop them to a folder in Thunderbird. If you have problems doing this try hovering the mouse over Thunderbird in the task bar, letting it change the windows focus, and then selecting the folder you want to move the message to, before releasing the mouse button. [2]

  • The Bat! supports IMAP accounts. See the "Using IMAP remote folders as an intermediary" section for another way to migrate your mail.

Thunderbird

  • Thunderbird doesn't have a built-in capability to export, import or merge profiles. See Importing folders for how to import/export folders using the ImportExportTools add-on, Moving address books between profiles for how to import/export address books, and Transfer data to a new profile for a detailed description of how to migrate every file in the profile. If you're merging profiles its easiest to just pick the profile with the most accounts, re-create the missing accounts, and then import the mail folders and address books from the other profiles.

    See Moving your profile folder if you want to move a profile from one machine to another, and its not practical to just backup the profile with MozBackup, copy the *.pcv file it creates to the other machine, install Thunderbird, and then restore the profile using Mozbackup.

Webmail (including Google Gmail, MSN Hotmail, Netscape Mail, or Yahoo)

Windows Mail (aka Windows Live Mail)

  • Import to Thunderbird:

    Windows mail stores the messages as .EML files. They are normally stored within the C:\AppData\Local\Microsoft\Windows Mail directory. If you can't find them look in the Tools -> Options -> Advanced -> Maintenance -> Store Folder to find where Windows Mail stored them. The best way to import .EML files is with the ImportExportTools add-on, it lets you import all of the .EML files in a directory in one step using "Tools -> ImportExportTools -> Import all eml files from a directory". However, if you only have a few .EML files you could drag and drop them from Windows Explorer to a folder in Thunderbird instead.

    Export the contacts using the Windows Contacts program as a .csv file. You can import it using Tools -> Import -> Address books -> Text Files. See this article for more information about how to export the contacts.

  • Export from Thunderbird:

    Export the messages as .EML files using the ImportExportTools extension. Then use File -> Import -> Messages in Windows Live Mail to import all of them. If it doesn't like the layout of the directory tree you can always launch Windows Live Mail, open a folder, and drag and drop the .EML files you want to import, to that folder. Outlook Express and Windows Mail support importing messages by dragging and dropping .EML files too.

Migrating messages using a mail server

Using an extension to put your Thunderbird messages back on the POP server

Another way to export your messages would be to follow the instructions in Putting messages back on a POP3 server to upload your messages back to your POP3 server. You could then download them normally with another email client. They will have normal headers, it would not look like you had forwarded the messages to yourself.

Using IMAP remote folders as an intermediary

If you have problems migrating your mail you might consider signing up for a free IMAP account and use it as a intermediary to move your mail. Think of it as a file share that knows about mail folders. You could create a 15GB IMAP account for Gmail using these instructions, a 5GB IMAP account with Outlook using these instructions or a 1TB IMAP account with Yahoo using these instructions . When you're done moving your mail you can delete the IMAP account in both email clients.

IMAP supports remote folders (on the mail server) that you can access just like they're local folders. You can copy/move messages/folders to/from them, even drag and drop a entire folder hierarchy. This would let you preserve most of the message status information (what messages have been replied to etc.) and the folder hierarchy. It should cause the least problems since you're using a Internet standard that both email clients support, rather than trying to convert between two partially documented file formats etc.

Create an IMAP account in both email clients. Copy your messages/folders to a remote inbox folder using one email client and then copy them from the remote inbox folder to a local folder using the other email client. If you have more messages than can fit in the mailbox do it in several steps, deleting the messages/folders in the remote inbox and compacting it as needed to free up more space. There are a few email clients whose IMAP support is crippled, and don't support uploading messages. But most popular email clients (Eudora, Outlook, Outlook Express, Pegasus, Thunderbird etc. ) do.

If the performance delay due to sending a lot of messages over the network is a issue you could temporarily install a local IMAP server and use it to provide the remote folders. hMailServer is an open source IMAP server for Windows thats easy to install.

Use a Gmail specific loader

You could sign up for a free Gmail account, upload the messages using a utility such as Gmail Loader (GML), configure Thunderbird to use Gmail, and then download your messages as new mail.

The Gmail Loader reads messages from your existing mail files and forwards them to either the Inbox or Sent Mail folder in a Gmail account. It supports Mbox (what Mozilla uses), MailDir (Qmail, others), MMDF (Mutt), MH (NMH), and Babyl (Emacs RMAIL) formats. It hides the fact that the message is forwarded and eliminates the grunt work of individually forwarding all of your messages. GML has versions for Windows (all files needed are included) and Linux / OS X (requires you to install Python).

Google webMail Filer for Thunderbird is a utility to upload messages from Thunderbird's mail folders to your Gmail account. It deals with issues such as not uploading duplicates, Unicode, Gmail nested labels and the Google mail quota that its not clear that GML knows about. Its only available for Windows (its a .NET program that won't run under Wine or using Mono). Its a better way to upload mail to Gmail but since it is Thunderbird specific program that only knows about mbox files its not useful if you are trying to migrate messages from another email client. Version 2.9.0.0 (released 2013-01-29) is the last version available. The author appears to have stopped all work on the software. Ghacks has an article about the utility here.

Google Apps Migration for Microsoft Outlook can be used to migrate messages, contacts and calendars from Outlook to a free Google Apps account. It replaces the Google Email Uploader program. You can create a POP or IMAP account for Google Apps in Thunderbird.

GMVault backs up your Gmail mail as a set of directories of .EML files. It can also be used to upload those files. Its not clear how easy it would be to export your mail into the format it expects.

Miscellaneous

Mbox files

There are four main versions of the mbox format. Thunderbird, Mozilla Suite, Netscape, Portable Thunderbird, Postbox, Spicebird, SeaMonkey and the open source version of Eudora use a slightly modified version of the mboxrd variant of this format. The proprietary version of Eudora uses a slightly modified version of the mboxo variant. Most Windows email clients that use mbox files will use a mboxo or mboxrd version, and you should have little trouble importing them. Under Linux you're more likely to run into an mboxcl or mboxcl2 version, which is incompatible. Both Kmail and Evolution use a compatible version. You might try migrating your messages to Kmail as an intermediate step since it supports importing numerous formats.

See the following links for more technical information about this format:

Manually importing and exporting

Unless you are an advanced user its generally preferable to use an application to import or export a folder since that typically sanitizes the file to minimize any incompatibilities. If you use IMAP's optional offline mode to create a local copy of remote folders, think ahead about how you will deal with any potential synchronization issues. To manually import/export mbox formatted files:

  1. Identify the e-mail account you want to use for the imported mail. You can use the Local Folders account, or some other account, or you can create a new account specially.
  2. In Account Settings, go to the Local Folders account's main page to find its Local directory path. Or, to import the folder into some other account, go to the account's Server Settings page to find its Local directory path. Make a note of the path.
  3. Exit Thunderbird or Mozilla Suite.
  4. Back up your profile or Mail directory, especially if you plan to overwrite existing mbox files.
  5. Copy the mbox files you are importing to the local directory that you identified in step 2. For example, copy "Inbox" (not Inbox.msf) to the account's local directory.
    Note: If you want to keep the existing mbox file of the same name in the new location, rename the file you wish to import before copying it over. For example, rename "Inbox" to "InboxOld" and "Sent" to "SentOld".
  6. Open Thunderbird or Mozilla Suite. As it starts up, the application automatically discovers new mbox files and makes them into folders. A folder for each file you copied should be displayed.
  7. Open each folder and verify that it contains the correct number of e-mails, that they are readable, and that you can open attachments. Sometimes, differences between mbox formats cause multiple emails to be combined into one larger e-mail or can make some e-mails unreadable.

Troubleshooting is beyond the scope of this article, but if you examine the mbox technical links and the links to importing specific programs, you may find helpful information.

See also