Sharing emails between Linux and Windows, the Thunderbird way
Having two operating systems is a good way of having the best of both worlds. Well, there are hardly "best-ofs" in Windows, but since people here at home are all WinXP users, I can't get rid of that just yet. Besides, I do some of my, uhm, design work on WinXP, so it stays.
But I digress: yes, having two OS is great, but it can be even greater if one can share email from the same accounts between the two OS. Gone are the days when I use Outlook for WinXP and Mutt for Linux. (I still use Mutt at work, though.) Presenting Mozilla Thunderbird, an email and newsgroup client from the developers of Firefox. It boasts of a clean interface, powerful anti-spam features and a host of extensions, making it have virtually unlimited features. Plus, it's open source.
I've been using it for a week now for both Windows and Linux, making a few changes in the preferences by hand -- try that with Outlook (you CAN'T). I have two office accounts: one for office correspondence and the other for technical mailing lists. I like the way Thunderbird handles threading and reply nestings, specially for mailing lists. I use these features as well for office mail to track progress on back-and-forth communications and transactions via email. Since we have a POP3 server, I can also download email at home, and Thunderbird makes it easier for me to do that.
Problem is, I have tweaked Thunderbird on the Linux more to my liking, while leaving the Windows version bare. And, if I download mail on the Linux part, I don't like doing it again on the Windows part by leaving the messages on the server and going through the download process again. Fortunately, Thunderbird put out a tutorial on sharing mail between Linux and Windows versions.
I could not possibly go through the process outlined in the tutorial simply because I've rigged my Linux profile to my liking and I'm too lazy to go reconfiguring it. So: I rolled my own Thunderbird-email-sharing strategy.
The prerequisites are:
- Of course, running Thunderbird versions for Linux and Windows.
- A FAT32 partition on which the user has read-write permissions. (I've also come up with a way of doing this, but that's for another post.)
This assumes that you have set up your Thunderbird profile, along with message filters, accounts, folders, etc., in Linux. You will start a new profile in Windows.
Here we go:
- Create a new Windows profile.
Start with the Windows version. Runthunderbird.exe -pto bring up the profile manager. You can move the existing profile to the shared FAT32 partition, but it's not covered here. Create a new profile and save it in the FAT32 partition (D:\). For our purposes, let's call that profile "thunderbird", which will be stored atD:\thunderbird\a1b2c3d.slt(wherea1b2c3dis the profile generated by Thunderbird). Leave the profile as is. - Copy the Linux profile's
Maildirectory to that of the Windows'.
Reboot to Linux. Copy all the contents of your profile's Mail directory to Windows profile:cp -R ~/.thunderbird/default/e5f6g7h.slt/Mail/* /mnt/win/thunderbird/a1b2c3d.slt/Mail/
Wheremnt/winis the FAT32 partition. Again, make sure you have read-write access to it.
- Modify the Linux
prefs.js.
Edit~/.thunderbird/default/e5f6g7h.slt/prefs.jsin your favorite editor (still the trustyvimfor me).
Look for the following lines:user_pref("mail.root.none", "~/.thunderbird/default/e5f6g7h.slt/Mail");
user_pref("mail.root.pop3", "~/.thunderbird/default/e5f6g7h.slt/Mail");
user_pref("mail.server.server1.directory", "~/.thunderbird/default/e5f6g7h.slt/Mail/pop.myisp.com");
Change the above to:user_pref("mail.root.none", "/mnt/win/thunderbird/a1b2c3d.slt/Mail");
user_pref("mail.root.pop3", "/mnt/win/thunderbird/a1b2c3d.slt/Mail");
user_pref("mail.server.server1.directory", "/mnt/win/thunderbird/a1b2c3d.slt/Mail/pop.myisp.com");
Note that you may have multiplemail.server.serverX.directorylines so change those as well.
Finally, delete lines containing "[ProfD]" as these are relative paths generated automatically.
That should be it. Verify that your setup is working by downloading mail in your Linux, save a draft mail, then reboot to Windows to see if they're there as well. You may want to modify your preferences in Windows, too. (I'm probably gonna do that later on.)
Comments
Post a Comment