From 593a7e05dd73264176e78c582b98c446983e5f2d Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 22 Feb 2017 23:38:51 +0100 Subject: .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. --- .offlineimaprc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to '.offlineimaprc') 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 -- cgit v1.2.3-70-g09d2