Skip to content

Instantly share code, notes, and snippets.

@dnouri
Created November 17, 2020 09:26
Show Gist options
  • Save dnouri/535772c6708088865a1ec031ed702843 to your computer and use it in GitHub Desktop.
Save dnouri/535772c6708088865a1ec031ed702843 to your computer and use it in GitHub Desktop.
[general]
accounts = Gmail
maxsyncaccounts = 3
socktimeout = 90
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
[Repository Gmail-Local]
type = Maildir
localfolders = ~/Maildir/Gmail
[Repository Gmail-Remote]
type = IMAP
remotehost = imap.gmail.com
remoteuser = daniel.nouri@gmail.com
# remotepass = PASSWORD
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
maxconnections = 3
realdelete = no
folderfilter = lambda folder: folder not in ['[Gmail]/Spam', '[Gmail]/Drafts']
[Account 4something]
localrepository = 4something-Local
remoterepository = 4something-Remote
[Repository 4something-Local]
type = Maildir
localfolders = ~/Maildir/4something
[Repository 4something-Remote]
type = IMAP
remotehost = imap.gmail.com
remoteuser = dnouri@4something.com
remotepass = youguessedit
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
maxconnections = 3
realdelete = no
folderfilter = lambda folder: folder not in ['[Gmail]/Drafts']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment