-
Notifications
You must be signed in to change notification settings - Fork 2
/
.offlineimaprc
43 lines (37 loc) · 1.29 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
# .offlineimaprc
# add this to crontab:
# 00 23 * * * offlineimap -u Noninteractive.Quiet
# or this:
# 00 23 * * * offlineimap -u Noninteractive.Basic
[general]
accounts = GMail
maxsyncaccounts = 3
ui = basic
[Account GMail]
localrepository = MyLocal
remoterepository = MyRemote
#autorefresh = 10
[Repository MyLocal]
type = Maildir
localfolders = /mnt/data/projects/email/gmail/maildir
[Repository MyRemote]
type = IMAP
maxconnections = 5
remotehost = imap.gmail.com
remoteuser = [email protected]
#remotepass = passwd
# or use remotepassfile: just the password on a single line
remotepassfile = ~/.offlineimap.gmail.password
ssl = yes
realdelete = no
#folderfilter = lambda foldername: foldername in ['INBOX', 'Sent']
folderfilter = lambda foldername: foldername in ['[Google Mail]/All Mail', '[Google Mail]/Sent Mail', '[Google Mail]/Drafts']
# Sup does not like brackets or spaces with Maildir paths (and with IMAP it has
# to be url encoded) so just do it simple and map brackets and space to
# underscore.
nametrans = lambda s: s.replace('[','').replace(']','').replace(' ', '_')
# trashfolder + spamfolder not tested yet
#trashfolder = [Google Mail]/Bin
#spamfolder = [Goolge Mail]/Spam
# Necessary as of OfflineIMAP 6.5.4 (found it in Archlinux wiki)
sslcacertfile = /etc/ssl/certs/ca-bundle.crt