This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathofflineimaprc
47 lines (39 loc) · 1.5 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
[general]
# NOTE: cronjob calls the quiet UI with -u
ui = ttyui
accounts = account1,account2
# Gives you a nice blinky output on the console so you know what's happening:
#ui = Curses.Blinkenlights
# If uncommented, this would show nothing at all. Great for cronjobs or background-processes:
#ui = Noninteractive.Quiet
### account1 ###
[Account account1]
localrepository = account1-local
remoterepository = account1-remote
[Repository account1-local]
type = Maildir
localfolders = ~/.mail/account1
[Repository account1-remote]
type = Gmail
remoteport = 993
remoteuser = [email protected]
remotepass = xXxXxXxXxX
ssl = yes
realdelete = yes
nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts', re.sub('.*All Mail$', 'all', re.sub('.*Sent Mail$', 'sent', re.sub('.*Starred$', 'flagged', re.sub('.*Trash$', 'trash', re.sub('.*software$', 'software', re.sub('.*subscriptions', 'subscriptions', folder))))))))
### account2 ###
[Account account2]
localrepository = account2-local
remoterepository = account2-remote
[Repository account2-local]
type = Maildir
localfolders = ~/.mail/account2
[Repository account2-remote]
type = Gmail
remoteport = 993
remoteuser = [email protected]
remotepass = xXxXxXxXxX
ssl = yes
realdelete = yes
nametrans = lambda folder: re.sub('.*Spam$', 'spam', re.sub('.*Drafts$', 'drafts', re.sub('.*Aent Mail$', 'all', re.sub('.*Sent Mail$', 'sent', re.sub('.*Starred$', 'flagged', re.sub('.*Trash$', 'trash', re.sub('.*books', 'books', folder)))))))
# vim: ft=cfg tw=0