-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathofflineimaprc
More file actions
111 lines (97 loc) · 3.04 KB
/
Copy pathofflineimaprc
File metadata and controls
111 lines (97 loc) · 3.04 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[general]
accounts = B_Chreekat, Snowdrift
pythonfile=~/.offlineimap/helper.py
#maxsyncaccounts=1
#ui=basic
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes.rc
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
##
##
##
[Account B_Chreekat]
localrepository = B_ChreekatLocal
remoterepository = B_ChreekatRemote
status_backend = sqlite
[Repository B_ChreekatLocal]
type = Maildir
localfolders = ~/Mail/B_Chreekat
nametrans = lambda folder: { 'starred': '[Gmail]/Starred'
}.get(folder, folder)
[Repository B_ChreekatRemote]
# This option would be nice, but requires configuring oauth through some various
# bullshit, and i don't feel like doing that right now.
# Default:
# auth_mechanisms = GSSAPI, XOAUTH2, CRAM-MD5, PLAIN, LOGIN
auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
type = Gmail
maxconnections = 3
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteuser = b@chreekat.net
# To set the password, do:
# >>> import keyring
# >>> keyring.set_password("gmail", "username", "password")
remotepasseval = get_password("google.com", "b@chreekat.net")
folderfilter = lambda f: f in ['[Gmail]/Starred'
,'recent'
,'@haskell'
,'@upcoming'
,'@waiting_for'
,'INBOX'
]
nametrans = lambda folder: {'[Gmail]/Starred': 'starred'
}.get(folder, folder)
##
##
##
[Account Personal]
localrepository = PersonalLocal
remoterepository = PersonalRemote
status_backend = sqlite
[Repository PersonalLocal]
type = Maildir
localfolders = ~/Mail/Personal
nametrans = lambda folder: { 'starred': '[Gmail]/Starred'
, 'ALL': '[Gmail]/All Mail'
}.get(folder, folder)
[Repository PersonalRemote]
type = Gmail
maxconnections = 3
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteuser = bryan.richter@gmail.com
# To set the password, do:
# >>> import keyring
# >>> keyring.set_password("gmail", "username", "password")
remotepasseval = get_password("gmail", "personal")
folderfilter = lambda f: f in ['[Gmail]/Starred'
,'[Gmail]/All Mail'
,'@upcoming'
,'@waiting_for'
,'INBOX'
]
nametrans = lambda folder: {'[Gmail]/Starred': 'starred'
,'[Gmail]/All Mail': 'ALL'
}.get(folder, folder)
##
##
##
[Account Snowdrift]
localrepository = SnowdriftLocal
remoterepository = SnowdriftRemote
status_backend = sqlite
[Repository SnowdriftLocal]
type = Maildir
localfolders= ~/Mail/Snowdrift
[Repository SnowdriftRemote]
type = IMAP
ssl = yes
maxconnections = 3
remotehost = mx1.snowdrift.coop
remoteuser = bryan@snowdrift.coop
remotepasseval = str(get_password("snowdrift", "me"))
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
folderfilter = lambda f: f in ['INBOX', 'starred']