This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathofflineimaprc
80 lines (58 loc) · 2.22 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Offlineimap configuration file
[general]
accounts = Tiger, Gmail
# maxsyncaccounts = 4
ignore_UID_on_errors = yes
# --------------------------------------------------------------------
# Tiger Mail
# --------------------------------------------------------------------
[Account Tiger]
localrepository = TigerLocal
remoterepository = TigerRemote
[Repository TigerLocal]
type = Maildir
localfolders = ~/Mail/Tiger
sep = /
[Repository TigerRemote]
type = IMAP
remotehost = outlook.office365.com
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteport = 993
remoteuser = zzg0009@tigermail.auburn.edu
createfolders = False
nametrans = lambda folder: re.sub('sent_items', 'sent',
re.sub('deleted_items', 'trash',
re.sub(' ', '_', folder.lower())))
folderfilter = lambda folder: folder in ['Deleted Items',
'Sent Items',
'Archive',
'INBOX']
# --------------------------------------------------------------------
# GMail
# --------------------------------------------------------------------
[Account Gmail]
localrepository = GmailLocal
remoterepository = GmailRemote
synclabels = yes
[Repository GmailLocal]
type = GmailMaildir
localfolders = ~/Mail/Gmail
sep = /
[Repository GmailRemote]
type = Gmail
remoteuser = zhitaao.gong@gmail.com
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
createfolders = False
nametrans = lambda folder: re.sub('\[gmail\]\/all_mail', 'archive',
re.sub('\[gmail\]\/important', 'important',
re.sub('\[gmail\]\/sent_mail', 'sent',
re.sub('\[gmail\]\/starred', 'flagged',
re.sub('\[gmail\]\/trash', 'trash',
re.sub(' ', '_', folder.lower()))))))
folderfilter = lambda folder: folder in ['[Gmail]/Trash',
'[Gmail]/Important',
'[Gmail]/Starred',
'[Gmail]/Sent Mail',
'[Gmail]/All Mail',
'INBOX']