diff options
author | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:44:50 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:44:50 +0200 |
commit | 4f142da74e5091a8681ea34e8259e69d22ffe574 (patch) | |
tree | f4b1b824404ae32d09681925839368ca65188ee3 | |
parent | 2f30c7844636cdbaa2d546d963702258f82646a3 (diff) |
sync-mail: fix
-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 |