Skip to content

Instantly share code, notes, and snippets.

@runiq
Created January 6, 2012 11:48
Show Gist options
  • Save runiq/1570247 to your computer and use it in GitHub Desktop.
Save runiq/1570247 to your computer and use it in GitHub Desktop.
runiq's offlineimaprc
##################################################
# General definitions
##################################################
[general]
#########
accounts = gm
metadata = ~/.cache/offlineimap
maxsyncaccounts = 4
ui = quiet
ignore-readonly = no
##################################################
# Mailbox name recorder
##################################################
[mbnames]
#########
enabled = yes
filename = ~/.config/mutt/muttrc.mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
##################################################
# Accounts
##################################################
[Account gm]
####################
localrepository = googlemail-local
remoterepository = googlemail-remote
autorefresh = 5
quick = 10
[Repository googlemail-local]
#############################
type = Maildir
localfolders = ~/.mail/gm
subscribedonly = no
sep = /
restoreatime = no
[Repository googlemail-remote]
##############################
type = Gmail
remoteuser = xxxxxxxx
remotepass = xxxxxxxx
realdelete = no
trashfolder = [Google Mail]/Papierkorb
spamfolder = [Google Mail]/Spam
nametrans = lambda foldername: re.sub('^\[Google\ Mail\]/', '', foldername)
folderfilter = lambda foldername: foldername not in ['[Google Mail]/Alle Nachrichten']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment