edmullen dot net

MOZILLA MAIL SYNC - Considerations when using two PCs to access the same email account

This page discusses the issue of using multiple computers to access the same email account. It only applies to POP (Post Office Protocol) mailbox services provided by most ISPs (Internet Service Providers), not IMAP, and a Microsoft Windows XP installation. In the following examples let's assume Bob Smith's email address is: bob.smith@someplace.net

Background

When using both a home machine and a laptop to access the same email account the user must manually manage the synchronization of mail messages to ensure that, at a minimum, there is one machine that has ALL of the messages on it.

Mozilla stores email messages in folders within the Mail/News program component. Those folders are actually plain-text files in Windows and stored in your profile mail folder.

For more info on profiles see these links:

An example of a Windows XP Mozilla profile folder location is (read as one unbroken line):

C:\Documents and Settings\[windowsuser]\Application Data\Mozilla\Profiles\[profilename]\xxxxxxxx.slt\

For Bob Smith his Windows XP Mozilla profile mail folder location might be:

C:\Documents and Settings\[windowsuser]\Application Data\Mozilla\Profiles\[profilename]\xxxxxxxx.slt\Mail\bob.smith\

When you install Mozilla it creates a default profile with a set of standard folders:

You can create your own folders in Mozilla. For each folder in Mozilla there is a Windows file with the exact same name. Additionally, for each mail folder there is an index file of the same name with a ".msf" file extension, e.g. Inbox.msf, Drafts.msf, etc. The actual mail messages are stored in the mail file, the one withOUT a file extension. Do not manually delete those types of files or you will be deleting mail messages and they may not be recoverable. You should also backup your entire profile on a regular basis (see http://edmullen.net/mozilla/moz_info_ed.php).

Using Mozilla Mail

In our example here, when someone sends Bob an email it is received and stored on the someplace.net POP mail server. It stays there until Mozilla retrieves it and deletes it.

The most common approach is to set Mozilla Mail's preferences to download and then delete messages in order to free up space on the server for new incoming messages. This is selectable in Mozilla's preferences (Edit - Mail & Newsgroups Account Settings).

With this setup and only using one PC there is no issue: you receive (download) mail into Mozilla. The messages are stored in the various folders you have created in Mozilla. They are deleted from the POP server.

Out of Sync

If you use two computers the dilemma is how to have a complete set of messages on both machines. If you get your mail on PC1 those messages won't be on PC2 (e.g., your laptop). As time goes by more mail is received for your account by the someplace.net mail server. If you then use PC2 to access your account you now have messages on both PCs that are not on the other: The two PCs are out of sync.

When using PC2 to access mail, if Mozilla is set up the same way as PC1, then all the messages will be downloaded and stored locally on the laptop and deleted from the POP server. On the laptop are any replies you made and any new messages you created and sent while using the laptop. But they are not on PC1. Your two machines' Mozilla Mail data are now really out of sync. So how do we deal with this dilemma?

One Possibility

One way is to set up the laptop to always leave messages on the POP server. If you do this you can then get those messages into your home PC and both of your machines' incoming mail will be in sync, assuming no new messages have come into the POP server since the last time the laptop retrieved messages. However, you won't have any of the laptop replies or newly-created messages available on PC1. This is obviously not acceptable.

You could forward those replies and original messages from the laptop to yourself, sign off, run Mozilla on PC1 and download them. But that's messy. The messages will have extraneous "stuff" in them due to the forwarding process.

Let's say you have 100 mail messages stored on the laptop in a folder called Family and that 25 of them are new messages received since you last checked mail on PC1. PC1 only has 75 messages in Family. How do you get those new 25 messages from Family on PC2 to Family on PC1?

You could simply copy the Windows Family file to PC1. It will overwrite the existing file. This is ok if you started with both PCs in-sync at the beginning of this example. But what if you're not certain that your two systems were really in sync before you got new mail on PC2?

On PC2 create a new Mozilla Mail folder called laptopSync. Highlight all the new messages in Family and copy them to this new folder (highlight the messages, right-click on any highlighted message, choose Copy To and select the laptopSync folder).

In Windows Explorer find the laptopSync file in your profile mail folder. With Mozilla not running on PC1, copy the file to the mail folder on PC1 using a floppy, CD, or network. Open Mozilla Mail. There will be a new Mozilla mail folder called laptopSync containing the 25 new messages. Simply copy them to the Family folder. Delete them from the laptopSync folder on both PCs. You should also copy any replies you made and new messages you composed on the laptop using this technique.

If the volume of messages on the laptop is relatively small this works fine. If, however, you have a lot of mail activity, you can create as many transfer sync folders/files as you need, e.g., laptopSyncFamily, laptopSyncFriends, laptopSyncBusiness, etc. This will make it easier to sort things out when transferring to PC1. Easier but not ideal.

Another Possibility

This is the one I use when I'm traveling. I want the laptop to have everything my PC1 has. I simply copy PC1's entire mail folder into the profile on the laptop, overwriting what's there. The two machines are now in-sync. I use my laptop to do email. The two machines are now OUT-of-sync. When I'm done (whether I'm traveling for two weeks or just spending an afternoon in the living room) I copy the mail folder from the laptop to PC1, overwriting what's there. The two machines are now in-sync.

A third Possibility

This is actually the one I use when I'm in the house using the laptop. All of my systems are on a LAN. I have two Mozilla profiles on the laptop: call one "Mobile" (the one used when traveling) and the other "LAN." Here's how LAN differs from Mobile.

In Mozilla I configured the LAN profile to use as its local directory the mail folder on PC1.

In Mozilla go to Edit - Mail & Newsgroups Account Settings. For the mail account in question click Server Settings. Click the Browse button next to "Local directory." Browse to the mail folder on PC1 over the LAN. In our Bob example the path would look like:

[mapped network drive letter]:\Documents and Settings\[windowsuser]\Application Data\Mozilla\Profiles\[profilename]\xxxxxxxx.slt\Mail\bob.smith\

CAUTION! - This works very well but don't run Mozilla mail simultaneously on both machines. They'll both be trying to access the same files at once and this will almost certainly cause problems. You may corrupt or lose a mail folder and its messages. BACK UP YOUR PROFILE(S) REGULARLY!


Yet Another Wrinkle

If you travel frequently and use Firefox and Thunderbird as your browser and mail/news you might want to investigate John Haller's customizations of these programs. He's created special versions dubbed "Portable Firefox" and "Portable Thunderbird" (and some other apps) which will run on removable media such as a CDR-W, Zip drive, USB drive, etc. They've been very well received and downloaded well over a quarter of a million times.

If you use only the portable versions there is no issue with synchronization. If, however, you use both home-based and portable installs you still have to deal with the sync issues described on this page.


This page last changed: April 30, 2013 - 10:26 AM

Copyright Ed Mullen | Contact Ed

click for home page