Skip to content

Instantly share code, notes, and snippets.

@phanviet
Created June 14, 2018 02:56
Show Gist options
  • Save phanviet/e4b0e155da7488a150f45a7d4018d407 to your computer and use it in GitHub Desktop.
Save phanviet/e4b0e155da7488a150f45a7d4018d407 to your computer and use it in GitHub Desktop.
[general]
ui=TTYUI
accounts = Gmail
autorefresh = 5
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
[Repository Gmail-Local]
type = Maildir
localfolders = ~/.Mail
[Repository Gmail-Remote]
type = Gmail
remotehost = imap.gmail.com
remoteuser = <email>
remotepass = <pass>
realdelete = no
ssl = yes
sslcacertfile = /usr/local/etc/openssl/cert.pem
maxconnections = 1
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
'[Gmail]/Spam',
'[Gmail]/All Mail'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment