1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00
server-dotfiles/offlineimap/.offlineimaprc

65 lines
1.7 KiB
Plaintext

# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# get started fast.
[general]
accounts = gmail,andthensome
maxsyncaccounts = 1
[Account gmail]
localrepository = gmail-local
remoterepository = gmail-remote
autorefresh = 0.5
quick = 10
[Repository gmail-local]
type = Maildir
localfolders = ~/mail/gmail
[Repository gmail-remote]
type = Gmail
remoteuser = alrayyes@gmail.com
remotepass = ubfsohoybafijmpg
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda foldername: re.sub ('^\[gmail\]', 'bak',
re.sub ('sent_mail', 'sent',
re.sub ('starred', 'flagged',
re.sub (' ', '_', foldername.lower()))))
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
keepalive = 60
holdconnectionopen = yes
createfolders = False
[Account andthensome]
localrepository = andthensome-local
remoterepository = andthensome-remote
autorefresh = 0.5
quick = 10
[Repository andthensome-local]
type = Maildir
localfolders = ~/mail/andthensome
[Repository andthensome-remote]
type = Gmail
remoteuser = ryan@andthensome.nl
remotepass = zaglfcekciupfsqe
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda foldername: re.sub ('^\[gmail\]', 'bak',
re.sub ('sent_mail', 'sent',
re.sub ('starred', 'flagged',
re.sub (' ', '_', foldername.lower()))))
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
keepalive = 60
holdconnectionopen = yes
createfolders = False
# Mutt support
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"