Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gmail configuration file for backing up email in multiple formats
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = john.smith@gmail.com
mailboxes = ("[Gmail]/All Mail",)
[destination]
type = MultiDestination
destinations = ('[mboxrd-destination]', '[maildir-destination]')
[mboxrd-destination]
type = Mboxrd
path = ~/Documents/backups/gmail/gmail-backup.mbox
[maildir-destination]
type = Maildir
path = ~/Documents/backups/gmail/
[options]
# print messages about each action (verbose = 2)
# Other options:
# 0 prints only warnings and errors
# 1 prints messages about retrieving and deleting messages only
verbose = 2
message_log = ~/.getmail/gmail.log
# preserves your mail after backup
delete = false
# just get new mails
read_all = false
# do not alter messages
delivered_to = false
received = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment