From 4f142da74e5091a8681ea34e8259e69d22ffe574 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 28 Jul 2019 16:44:50 +0200 Subject: sync-mail: fix --- sync-mail | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sync-mail') diff --git a/sync-mail b/sync-mail index ca551ac..78fbc2f 100755 --- a/sync-mail +++ b/sync-mail @@ -7,18 +7,18 @@ if [[ $(uname) == "Linux" ]]; then export PATH=/home/$(whoami)/.local/bin:$PATH fi -$(which imapfilter) -c $HOME/.imapfilter/private.lua 2>/dev/null -if [[ ! -f ~/.holiday ]]; then +$(which imapfilter) -c $HOME/.imapfilter/personal.lua 2>/dev/null +if [[ ! -f ~/.ooo ]]; then $(which imapfilter) -c $HOME/.imapfilter/work.lua 2>/dev/null fi case `date +"%a"` in Sat|Sun) - $(which mbsync) -q private + $(which mbsync) -q personal ;; *) - if [[ -f ~/.holiday ]]; then - $(which mbsync) -q private + if [[ -f ~/.ooo ]]; then + $(which mbsync) -q personal else $(which mbsync) -q -a fi -- cgit v1.2.3