| 1 |
[general] |
| 2 |
# GPG quirks, leave unconfigured |
| 3 |
ui = ttyui |
| 4 |
# you can use any name as long as it matches the 'account1, 'account2' in the rest |
| 5 |
# of the file |
| 6 |
accounts = account1, account2 |
| 7 |
# this is where the `gpg-pw.py` file is on disk |
| 8 |
pythonfile=~/where/is/the/file/gpg-pw.py |
| 9 |
fsync = False |
| 10 |
|
| 11 |
# you can call this any way you like |
| 12 |
[Account account1] |
| 13 |
localrepository = account1-local |
| 14 |
remoterepository = account1-remote |
| 15 |
# no need to touch this |
| 16 |
status_backend = sqlite |
| 17 |
|
| 18 |
[Account account2] |
| 19 |
localrepository = account2-local |
| 20 |
remoterepository = account2-remote |
| 21 |
status_backend = sqlite |
| 22 |
|
| 23 |
# this is a gmail account |
| 24 |
[Repository account1-local] |
| 25 |
type = Maildir |
| 26 |
# create with maildirmake or by hand by creating cur, new, tmp |
| 27 |
localfolders = ~/Mail/Mailboxes/account1 |
| 28 |
# standard Gmail stuff |
| 29 |
nametrans = lambda folder: { 'drafts': '[Gmail]/Drafts', |
| 30 |
'sent': '[Gmail]/Sent mail', |
| 31 |
'flagged': '[Gmail]/Starred', |
| 32 |
'trash': '[Gmail]/Trash', |
| 33 |
'archive': '[Gmail]/All Mail' |
| 34 |
}.get(folder, folder) |
| 35 |
|
| 36 |
[Repository account1-remote] |
| 37 |
maxconnections = 1 |
| 38 |
type = Gmail |
| 39 |
ssl=yes |
| 40 |
# for osx, you might need to download the certs by hand |
| 41 |
#sslcacertfile=~/Mail/certs.pem |
| 42 |
#sslcacertfile=~/Mail/imap.gmail.com.pem |
| 43 |
# sslcacertfile=/etc/ssl/cert.pem |
| 44 |
|
| 45 |
# or use Linux's standard certs |
| 46 |
sslcacertfile=/etc/ssl/certs/ca-certificates.crt |
| 47 |
# your account |
| 48 |
remoteuser = [email protected] |
| 49 |
remotepasseval = get_pass(account="[email protected]", server="imap.gmail.com", passwd_file="passwords-gmail.txt.gpg") |
| 50 |
realdelete = no |
| 51 |
createfolders = no |
| 52 |
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts', |
| 53 |
'[Gmail]/Sent Mail': 'sent', |
| 54 |
'[Gmail]/Starred': 'star', |
| 55 |
'[Gmail]/Trash': 'trash', |
| 56 |
'[Gmail]/All Mail': 'archive', |
| 57 |
}.get(folder, folder) |
| 58 |
folderfilter = lambda folder: folder not in ['[Gmail]/Trash', |
| 59 |
'[Gmail]/Spam', |
| 60 |
] |
| 61 |
|
| 62 |
[Repository account2-remote] |
| 63 |
# copy the stanza above, change the 'account' parameter of get_pass, etc. |