From c86d4d52c9fe0cd877a6fee27284ce8f635789c8 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 10 Nov 2020 12:19:53 +0100 Subject: sync-mail: no secondary --- sync-mail | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sync-mail b/sync-mail index 705ff33..222065d 100755 --- a/sync-mail +++ b/sync-mail @@ -7,14 +7,16 @@ if [[ $(uname) == "Linux" ]]; then export PATH=/home/$(whoami)/.local/bin:$PATH fi -$(which imapfilter) -c $HOME/.imapfilter/primary.lua 2>/dev/null - -case `date +"%a"` in +case `date +"%a"` in Sat|Sun) + $(which imapfilter) -c $HOME/.imapfilter/primary.lua 2>/dev/null $(which mbsync) -q primary ;; *) - $(which mbsync) -q -a + $(which imapfilter) -c $HOME/.imapfilter/primary.lua 2>/dev/null + $(which mbsync) -q primary + #$(which imapfilter) -c $HOME/.imapfilter/secondary.lua 2>/dev/null + #$(which mbsync) -q secondary ;; esac -- cgit v1.2.3