Search code examples
pythongmailgoogle-appsgmail-imap

Python program to transfer gmail between accounts (including labels)


The problem, transfer all emails including labels, sent, drafts... from one google apps account to another using python. This seems possible using imap. A complete program would be great :-) but if anyone has some suggestions or examples of how to go about this specific to gmail that would be great.


Solution

  • I used this tool, which can preserve labels: http://www.gmail-backup.com/

    It's written in python.