aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-02-22 23:38:51 +0100
committerDavid Runge <dave@sleepmap.de>2017-02-22 23:38:51 +0100
commit593a7e05dd73264176e78c582b98c446983e5f2d (patch)
tree669c24c3cbbf561de19b82e9e6e6fe2a85c01879
parent2e3faa37b0e68dec65bab43fc1a817e7944ccc05 (diff)
downloaddotfiles-593a7e05dd73264176e78c582b98c446983e5f2d.tar.gz
dotfiles-593a7e05dd73264176e78c582b98c446983e5f2d.tar.bz2
dotfiles-593a7e05dd73264176e78c582b98c446983e5f2d.tar.xz
dotfiles-593a7e05dd73264176e78c582b98c446983e5f2d.zip
.offlineimaprc: Removing autorefresh settings (offlineimap.service is started by offlineimap.timer). Setting quick syncs to -1 (always on). This way Maildirs with new/deleted contents will get synced, while the others are ignored. Only full syncs also take care of flags. Adding folderfilter for broken INBOX.INBOX folder in c-base-remote repository. Further defining lambda for INBOX in c-base-local repository.
-rw-r--r--.offlineimaprc17
1 files changed, 7 insertions, 10 deletions
diff --git a/.offlineimaprc b/.offlineimaprc
index c17a990..28714c0 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -1,6 +1,6 @@
[general]
accounts = sleepmap.de,tu-berlin.de,c-base.org,studio@ak.tu-berlin.de
-maxsyncaccounts = 3
+maxsyncaccounts = 4
pythonfile = ~/bin/pass2offlineimap
# Automatic mailbox generationi for mutt
@@ -16,8 +16,7 @@ footer = "\n"
localrepository = tu-berlin-local
remoterepository = tu-berlin-remote
status_backend = sqlite
-autorefresh = 3
-quick = 7
+quick = -1
[Repository tu-berlin-local]
type = Maildir
@@ -35,8 +34,7 @@ sslcacertfile = /etc/ssl/cert.pem
localrepository = tu-berlin-studio-local
remoterepository = tu-berlin-studio-remote
status_backend = sqlite
-autorefresh = 3
-quick = 7
+quick = -1
[Repository tu-berlin-studio-local]
type = Maildir
@@ -54,8 +52,7 @@ sslcacertfile = /etc/ssl/cert.pem
localrepository = sleepmap-local
remoterepository = sleepmap-remote
status_backend = sqlite
-autorefresh = 3
-quick = 7
+quick = -1
postsynchook = notmuch new
[Repository sleepmap-local]
@@ -74,13 +71,12 @@ sslcacertfile = /etc/ssl/cert.pem
localrepository = c-base-local
remoterepository = c-base-remote
status_backend = sqlite
-autorefresh = 3
-quick = 7
+quick = -1
[Repository c-base-local]
type = Maildir
localfolders = ~/Mail/c-base.org/
-nametrans = lambda folder: 'INBOX.' + folder
+nametrans = lambda folder: "INBOX" if "INBOX" in folder else "INBOX." + folder
[Repository c-base-remote]
type = IMAP
@@ -88,4 +84,5 @@ remotehost = c-mail.c-base.org
remoteuser = dave
remotepasseval = get_pass("dave@c-base.org")
nametrans = lambda folder: re.sub('^INBOX\.', '', folder)
+folderfilter = lambda folder: folder not in ['INBOX.INBOX']
sslcacertfile = /etc/ssl/cert.pem