Skip to content

Instantly share code, notes, and snippets.

@mottram
Created April 28, 2010 00:14
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mottram/381538 to your computer and use it in GitHub Desktop.
Save mottram/381538 to your computer and use it in GitHub Desktop.
# OfflineIMAP config for GMail backup (only tested on OS X)
# Save it as ~/.offlineimaprc
# NB: this will sync *everything*, including All Mail, Spam, Bin, etc.
[general]
metadata = ~/.offlineimap
accounts = GMail
maxsyncaccounts = 1
# You might want to change the below to ui = TTY.TTYUI the first time you run offlineimap
# It can choke on large attachments and GMail might reset the connection if you download too much
ui = Noninteractive.Quiet
ignore-readonly = no
[Account GMail]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = Maildir
# Change this to the path to your backup folder
localfolders = ~/Backups/Gmail
subscribedonly = no
restoreatime = no
[Repository Remote]
type = Gmail
remotehost = imap.gmail.com
remoteuser = your.address@gmail.com
remotepass = y0urp455w0rd
ssl = yes
realdelete = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment