To backup email from a gmail account, first install mpop:

sudo apt-get install mpop

Edit your ~/.mpoprc file:

# defaults
tls on

# gmail
account gmail
user myaccount
password myaccountpassword
keep on
only_new off
tls_starttls off
delivery mbox ~/Backup/myaccount@gmail.mbox

# Set a default account
account default : gmail

To grab some emails:

mpop --tls-certcheck=off

Original info from this post.

Archived Comments

Date: 2014-02-05 20:06:07.883063 UTC

Author: marko

Much WIN! Thanks!