]> git.rmz.io Git - dotfiles.git/blobdiff - offlineimap/config
offlineimap: sync labels and switch to daemon mode
[dotfiles.git] / offlineimap / config
similarity index 67%
rename from offlineimaprc
rename to offlineimap/config
index 3e5e6d2082c850df6e581b18ce8e3b5ba07625f1..5b020235b61f97c125eb7e62ff344adbc8632ff0 100644 (file)
@@ -1,10 +1,10 @@
 [general]
-#metadata = ~/.offlineimap
+metadata = $XDG_DATA_HOME/offlineimap
 accounts = gmail
 maxsyncaccounts = 1
 #ui = basic
 #ignore-readonly = no
-pythonfile = ~/bin/offlineimap_utils.py
+pythonfile = $XDG_CONFIG_HOME/offlineimap/utils.py
 socktimeout = 120
 fsync = false
 
@@ -21,18 +21,23 @@ sort_keyfunc = sort_key
 [Account gmail]
 localrepository = gmail-local
 remoterepository = gmail-remote
-#autorefresh = 1
-quick = 10
+autorefresh = 10
+quick = -1
 # presynchook = imapfilter
 # postsynchook = notifysync.sh
 # presynchook = imapfilter -c someotherconfig.lua
 status_backend = sqlite
 # maxsize = 2000000
-# maxage =
+# maxage = 10
 #maildir-windows-compatible = no
+synclabels = yes
+labelsheader = X-Label
+filterheaders = X-Label
+#ignorelabels = \Inbox, \Starred, \Sent, \Draft, \Spam, \Trash, \Important
+ignorelabels = \Draft, \Important
 
 [Repository gmail-local]
-type = Maildir
+type = GmailMaildir
 localfolders = ~/mail/gmail
 #sep = .
 #restoreatime = no
@@ -42,11 +47,12 @@ nametrans = translocal
 type = Gmail
 remoteuser = samir.benmendil@gmail.com
 nametrans = transremote
-#folderfilter = lambda foldername: foldername not in '[Google Mail]/All Mail'
+# folderfilter = lambda foldername: foldername in ['[Google Mail]/All Mail', '[Google Mail]/Drafts', '[Google Mail]/Bin']
 sslcacertfile = /etc/ssl/certs/ca-certificates.crt
 trashfolder = '[Google Mail]/Bin'
 spamfolder = '[Google Mail]/Spam'
+usecompression = yes
 maxconnections = 3
 holdconnectionopen = yes
 keepalive = 60
-#readonly = False
+# readonly = True