]> git.rmz.io Git - dotfiles.git/blob - offlineimap/config
8125475ddd4c48f955dea651c46b1ebe49d4b18a
[dotfiles.git] / offlineimap / config
1 [general]
2 metadata = $XDG_DATA_HOME/offlineimap
3 accounts = gmail
4 maxsyncaccounts = 1
5 #ui = basic
6 #ignore-readonly = no
7 pythonfile = $XDG_CONFIG_HOME/offlineimap/utils.py
8 socktimeout = 120
9 fsync = false
10
11 [mbnames]
12 enabled = yes
13 filename = $my_config_dir/mailboxes
14 header = "mailboxes "
15 peritem = "+%(accountname)s/%(foldername)s"
16 sep = " "
17 footer = "\n"
18 # sort_keyfunc = lambda d: (d['accountname'], d['foldername'])
19 sort_keyfunc = sort_key
20
21 [Account gmail]
22 localrepository = gmail-local
23 remoterepository = gmail-remote
24 autorefresh = 10
25 quick = -1
26 # presynchook = imapfilter
27 # postsynchook = notifysync.sh
28 # presynchook = imapfilter -c someotherconfig.lua
29 status_backend = sqlite
30 # maxsize = 2000000
31 # maxage = 10
32 #maildir-windows-compatible = no
33 synclabels = yes
34 labelsheader = X-Label
35 filterheaders = X-Label
36 #ignorelabels = \Inbox, \Starred, \Sent, \Draft, \Spam, \Trash, \Important
37 ignorelabels = \Draft, \Important
38
39 [Repository gmail-local]
40 type = GmailMaildir
41 localfolders = $MAILDIR/gmail
42 utime_from_headers = yes # not sure if this is compatible with `quick = -1`
43 filename_use_mail_timestamp = yes
44 #sep = .
45 #restoreatime = no
46 nametrans = translocal
47
48 [Repository gmail-remote]
49 type = Gmail
50 remoteuser = samir.benmendil@gmail.com
51 nametrans = transremote
52 # folderfilter = lambda foldername: foldername in ['[Google Mail]/All Mail', '[Google Mail]/Drafts', '[Google Mail]/Bin']
53 sslcacertfile = /etc/ssl/certs/ca-certificates.crt
54 trashfolder = '[Google Mail]/Bin'
55 spamfolder = '[Google Mail]/Spam'
56 usecompression = yes
57 maxconnections = 3
58 holdconnectionopen = yes
59 keepalive = 60
60 auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
61 # readonly = True