-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathofflineimaprc
67 lines (59 loc) · 2.33 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
# -*- mode: conf -*-
[general]
accounts = mjh
ui = ttyui
# pythonfile defines get_authinfo_password
pythonfile = ~/.offlineimap.py
fsync = False
[Account mjh]
localrepository = mjh-local
remoterepository = mjh-remote
[Repository mjh-local]
type = Maildir
localfolders = ~/.mail/mjh-mjhoy.com
[Repository mjh-remote]
maxconnextions = 1
type = IMAP
ssl = yes
sslcacertfile = OS-DEFAULT
remotehost = imap.fastmail.com
# https://www.fastmail.help/hc/en-us/articles/360058752874-Configuring-the-IMAP-path-prefix
remoteport = 993
remoteuser = [email protected]
# remotepass = remote-pass-here
remotepasseval = get_password(path="Email/[email protected]/imap.fastmail.com")
folderfilter = lambda folder: folder not in ['Junk Mail',
]
# old gmail account. Don't use anymore, not sure if this still works.
# [Account MjhoyG]
# localrepository = MjhoyG-Local
# remoterepository = MjhoyG-Remote
# [Repository MjhoyG-Local]
# type = Maildir
# localfolders = ~/.mail/michael.john.hoy-gmail.com
# nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
# 'sent': '[Gmail]/Sent Mail',
# 'flagged': '[Gmail]/Starred',
# 'trash': '[Gmail]/Trash',
# 'archive': '[Gmail]/All Mail',
# }.get(folder, folder)
# [Repository MjhoyG-Remote]
# maxconnections = 1
# type = Gmail
# remoteuser = [email protected]
# # remotepass = remote-pass-here
# remotepasseval = get_authinfo_password(machine="imap.gmail.com", login="[email protected]", port="993")
# realdelete = no
# nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
# '[Gmail]/Sent Mail': 'sent',
# '[Gmail]/Starred': 'flagged',
# '[Gmail]/Trash': 'trash',
# '[Gmail]/All Mail': 'archive',
# }.get(folder, folder)
# folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
# '[Gmail]/Important',
# 'Sent Messages',
# '[Gmail]/Spam',
# ]
# ssl = true
# sslcacertfile = /usr/local/etc/openssl/cert.pem