diff options
Diffstat (limited to 'sync-mail')
-rwxr-xr-x | sync-mail | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |