forked from dotphiles/dotphiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathofflineimaprc
65 lines (56 loc) · 1.45 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
63
64
#
# dotphiles : https://github.com/dotphiles/dotphiles
#
# Use offlineimap to pull mail
#
# Authors:
# Ben O'Hara <[email protected]>
#
# In the general section
[general]
# Controls how many accounts may be synced simultaneously
maxsyncaccounts = 2
accounts=Gmail,Work
# In the account identifier
[Account Gmail]
# Minutes between syncs
autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
quick = 10
localrepository = Gmail-local
remoterepository = Gmail-remote
[Repository Gmail-local]
type = Maildir
localfolders = ~/.mail/Gmail/
[Repository Gmail-remote]
type = Gmail
remoteuser = [email protected]
# "[Gmail]/Some Folder" --> some_folder
nametrans = lambda folder: re.sub('^inbox$', 'INBOX',
re.sub(' +', '_',
re.sub(r'.*/(.*)$', r'\1', folder).lower()))
# In the account identifier
[Account Work]
# Minutes between syncs
autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
quick = 10
localrepository = Work-local
remoterepository = Work-remote
[Repository Work-local]
type = Maildir
localfolders = ~/.mail/Work/
[Repository Work-remote]
type = IMAP
remotehost = imap.work.com
remoteuser = username
ssl = yes
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes.offlineimap
header = "mailboxes "
peritem = "=%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"