summaryrefslogblamecommitdiffstats
path: root/offlineimaprc
blob: dd4181c4c98cc14f05b711701b5e36aca7e74912 (plain) (tree)




























































                                                                                                      
[general]
ui = TTY.TTYUI
accounts = MatthewLemon, Gmail
pythonfile=~/.offlineimap.py
fsync = False

[Account MatthewLemon]
localrepository = MatthewLemon-Local
remoterepository = MatthewLemon-Remote
#status_backend = sqlite
postsynchook = notmuch new

[Repository MatthewLemon-Local]
type = Maildir
localfolders = ~/.mail/matt-matthewlemon.com
# nametrans = lambda folder: {'drafts': '/Drafts',
# 				'sent':	'/Sent',
# 				'archive': '/Archive',
# 				'inbox': '/Inbox',
# 				}.get(folder, folder)

[Repository MatthewLemon-Remote]
#cert_fingerprint = 54137524fe721f0cbb8a6a0e1e280ade50482e29
maxconnections = 3
type = IMAP
remotehost = mail.messagingengine.com
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteuser = matthewlemon@fastmail.fm
remotepasseval = get_pass("fastmail")
#remotepasseval = keyring.get_password('offlineimap', 'matthewlemon') 
# nametrans = lamda folder: {'/Drafts': 'drafts',
# 				'/Sent': 'sent',
# 				'/Archive': 'archive',
# 				'/Inbox': 'inbox',
# 				}.get(folder, folder)
#folderfilter = lambda folder: folder in ['INBOX', 'INBOX.Sent', 'INBOX.Archive', 'INBOX.Drafts']
folderfilter = lambda folder: folder in ['INBOX', 'INBOX.Sent Items', 'INBOX.Archive', 'INBOX.Drafts']

[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
synclabels = yes

[Repository Gmail-Local]
type = GmailMaildir
localfolders = ~/.mail/matthew.lemon-gmail.com

[Repository Gmail-Remote]
type = Gmail
remoteuser = matthew.lemon@gmail.com
remotepass = hvhmfbdlgggebxgc
nametrans = lambda folder: {'drafts': '/Drafts',
				'sent':	'/Sent',
				'archive': '/Archive',
				'inbox': '/Inbox',
				}.get(folder, folder)
folderfilter = lambda foldername: foldername not in ['Gmail]/All Mail']
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
ssl_version = tls1_2