邮件迁移合并工具
imapsync
yum -y -q install imapsync imapsync --host1 mail.gmail.com \ --user1 [email protected] \ --password1 passwordold \ --host2 mail.newhost.com \ --user2 [email protected] \ --password2 passwordnew \ --ssl1 \ --ssl2
getmail
yum -y -q install getmail
mkdir -p /root/.getmail/maildir/{new,cur,tmp}
cat>/root/.getmail/getmailrc.buddha<<EOF
[retriever]
type = SimplePOP3Retriever
server = pop.qq.com #如果是gmail则改为pop.gmail.com
username = budda
password = password
[destination]
type = Maildir
path = ~/.getmail/maildir/ #就是刚才在~/.getmail/建立的目录,注意该目录下一定要有new,cur,tmp这三个子目录
[options]
read_all = False #只接受以前没有收取的邮件,如果改成True则收取邮箱中所有邮件
delete = False #下载邮件后不在服务器上删除该邮件,如果改成True则删除
EOF
getmail --rcfile=getmailrc.buddha
none



