1. Homepage
  2. Articoli
  3. Video
  4. Bash scripting
  5. Sistema
  6. Tips
  7. News


From Sylpheed to gMail (and return)

» Author: Andrea Ganduglia Date: 2008-05-22 08:19:14 Copyright: (c)2008 Andrea Ganduglia

Hello, this article describe a valid (?) and tested method for migrate your emails from Sylpheed to gMail. It's not an enterprise or official or end-user solution, it's an hack!

You can find more solutions here: http://www.squidoo.com/gmailoptions, but most of this solutions do not preserve original date of emails or work only under Windows or required 3parts software. Other good solution is here: http://www.marklyon.org/gmail/default.htm but do not support date preservation.

My solution preserve original date and, if you are comfortable on command line, it's simple to implement.

Indice dei contenuti


Overview

gMail allows to import emails from another account through POP3 protocol; you can add 1 to 5 POP accounts from Setting/Accounts. The basic idea of this solution is create a fake POP server on your local machine pointed on your Sylpheed directories tree. When gMail connects your fake POP server, it will receive your old emails.

Motivations

From 2003 I am a Sylpheed user. Recently I moved my domains on DreamHost.com, that it allows to use gMail as mail server. In a short time I loved gMail capabilities and I try to use only one gMail account for manage all my emails, but I need to extend gMail features to my old emails.

Requirements

About connection, public IP and NAT

If you cannot use your machine, please consider to buy a virtual machine. For this topic I bought a 1-share VM from Gandi,net. Gandi is currently under beta testing, and you can buy a VM for less 8 EUR/month without automatic renew. It works very well and it's inexpensive! Gandi VM with Debian 4 provided all what you need.

HOWTO

This HOWTO is tested ONLY under Debian 4.

Problems

Return to Sylpheed

I said I use Sylpheed. And It's true. Now all my emails are on gMail, then Google controls my data. Google is not evil, but it'sn't good in any way. The first step after importing is backup!

gMail allows to use IMAP protocol for manage emails with your preferred client, you can enable IMAP from Settings/Forwarding and POP/IMAP tab. Follow this instructions for setup IMAP account on your Sylpheed client:
http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=75725

Now you can use gMail web mail or Sylpheed and your messages are safe!

Notes

Please note that the method described above is not secure, when it's run anybody can connects your POP3 server and slurp your messages. Please, consider to modify pop3d.php with a basic authentication method.

I used this method with Sylpheed, but potentially it could be used this all mail clients (it will require some pop3d.php modifications).