Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
Created October 16, 2010 02:04
Show Gist options
  • Select an option

  • Save pbrisbin/629299 to your computer and use it in GitHub Desktop.

Select an option

Save pbrisbin/629299 to your computer and use it in GitHub Desktop.
[general]
# NOTE: cronjob calls the quiet UI with -u
ui = TTY.TTYUI
accounts = GMail
[Account GMail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
[Repository Gmail-Local]
type = Maildir
localfolders = ~/Mail/GMail
[Repository Gmail-Remote]
type = Gmail
remoteuser = username@gmail.com
remotepass = gmailpassword
realdelete = no
nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts', re.sub('.*Sent Mail$', 'sent', re.sub('.*Starred$', 'flagged', re.sub('.*Trash$', 'trash', re.sub('.*All Mail$', 'archive', folder))))))
# vim: ft=cfg tw=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment