summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2020-11-10 12:19:53 +0100
committerpks <pks@pks.rocks>2020-11-10 12:19:53 +0100
commitc86d4d52c9fe0cd877a6fee27284ce8f635789c8 (patch)
tree4ce7f6e0109aa7b89ca81b55fd0fd7e20f474303
parent0a28deadbfe4de2e756383b486fe9117d92b907f (diff)
sync-mail: no secondary
-rwxr-xr-xsync-mail10
1 files 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