summaryrefslogtreecommitdiff
path: root/sync-mail
diff options
context:
space:
mode:
Diffstat (limited to 'sync-mail')
-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