Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gmail configuration file for backing up email in multiple formats
type = SimpleIMAPSSLRetriever
server =
username =
mailboxes = ("[Gmail]/All Mail",)
type = MultiDestination
destinations = ('[mboxrd-destination]', '[maildir-destination]')
type = Mboxrd
path = ~/Documents/backups/gmail/gmail-backup.mbox
type = Maildir
path = ~/Documents/backups/gmail/
# 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