diff options
-rwxr-xr-x | sync-mail | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |