-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.offlineimaprc
More file actions
35 lines (31 loc) · 1.24 KB
/
Copy path.offlineimaprc
File metadata and controls
35 lines (31 loc) · 1.24 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
[general]
# List of accounts to be synced, separated by a comma.
accounts = main
pythonfile = ~/.offlineimap.py
[Account main]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = main-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = gmail-remote
[Repository main-local]
# OfflineIMAP supports Maildir, GmailMaildir, and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/mail
[Repository gmail-remote]
type = Gmail
remoteuser = manoelnt0@gmail.com
remotepasseval = get_pass()
nametrans = lambda foldername: re.sub ('^\[gmail\]', 'bak',
re.sub ('sent_mail', 'sent',
re.sub ('starred', 'flagged',
re.sub (' ', '_', foldername.lower()))))
# avoid already exists errors
createfolders = False
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
maxconnections = 4
singlethreadperfolder = yes
# Necessary as of OfflineIMAP 6.5.4
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
# Necessary to work around https://github.com/OfflineIMAP/offlineimap/issues/573 (versions 7.0.12, 7.2.1)
ssl_version = tls1_2