forked from sbernheim4/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.offlineimaprc
62 lines (55 loc) · 2.11 KB
/
.offlineimaprc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[general]
accounts = work, Gmail
ui = ttyui
fsync = False
socktimeout = 60
pythonfile=~/dotfiles/.mutt/scripts/keychain_access.py
autorefresh = 5
[Account work]
localrepository = work-local
remoterepository = work-remote
postsynchook = notmuch new
[Repository work-local]
type = Maildir
localfolders = ~/Mail/work
# Besides, we only need `All Mail` folder.
# Sup would manage mails on its own.
# If your GMail language setting is not English, you can execute
# `offlineimap --info` to find out the name of folder which is
# translated and encoded after your account is configured.
nametrans = lambda folder: {'inbox': 'INBOX'
}.get(folder, folder)
[Repository work-remote]
maxconnections = 4
type = IMAP
ssl = no
#sslcacertfile = ~/.mutt/certificates/alanaamy.pem
remotehost = mail.alanaamy.net
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]", server="alanaamy.net")
remoteport = 143
nametrans = lambda folder: {'INBOX': 'inbox',
'Archive': 'archive'
}.get(folder, folder)
#folderfilter = lambda folder: folder in ['INBOX', 'Tax, 'Study' , 'Disputes', 'Holidays', 'Contracts', 'Chandigarh', 'Sent', 'Property', 'Payments', 'Policies' ]
# Or, if you have a lot of mail and don't want to wait for a long time before
# using sup, you can archive all your old mails on Gmail and only sync the
# inbox with the following line replacing the previous `folderfilter` line:
# folderfilter = lambda folder: folder == 'INBOX'
# folderfilter = lambda f: f not in ['sent','inbox' ]
# folderfilter = lambda folder: folder not in [ 'inbox' , 'sent' , 'trash' ]
folderfilter = lambda f: f not in ['inbox','archive','drafts']
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
postsynchook = notmuch new
[Repository Gmail-Local]
type = Maildir
localfolders = ~/Mail/Gmail
[Repository Gmail-Remote]
type = Gmail
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]", server="imap.gmail.com")
realdelete = no
maxconnections = 3
sslcacertfile = /usr/local/etc/openssl/cert.pem