gdritter repos dotfiles / f3ee447
Added offlineimap config Getty Ritter 8 years ago
2 changed file(s) with 40 addition(s) and 0 deletion(s). Collapse all Expand all
1 #!/usr/bin/python2
2
3
4 from subprocess import check_output
5
6
7 def passwd(account):
8 return check_output('pass gmail/{0}'.format(account),
9 shell=True).splitlines()[0]
1 [general]
2 accounts = galois
3 pythonfile = ~/.offlineimap.py
4 maxsyncaccounts = 1
5
6 [Account galois]
7 localrepository = galois-local
8 remoterepository = galois-remote
9 status_backend = sqlite
10 autorefresh = 0.5
11 quick = 10
12
13 [Repository galois-local]
14 type = Maildir
15 localfolders = ~/.mail
16
17 [Repository galois-remote]
18 type = Gmail
19 remotehost = imap.gmail.com
20 remoteuser = gdritter@galois.com
21 remotepasseval = passwd('galois')
22 realdelete = no
23 sslcacertfile = /etc/ssl/certs/ca-certificates.crt
24
25 [mbnames]
26 enabled = yes
27 filename = ~/.mutt/mailboxes
28 header = "mailboxes "
29 peritem = "+%(accountname)s/%(foldername)s"
30 sep = " "
31 footer = "\n"