diff options
Diffstat (limited to 'sync-mail')
-rwxr-xr-x | sync-mail | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -8,22 +8,8 @@ if [[ $(uname) == "Linux" ]]; then fi $(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 personal - ;; - *) - if [[ -f ~/.ooo ]]; then - $(which mbsync) -q personal - else - $(which mbsync) -q -a - fi - ;; -esac +$(which mbsync) -q personal new="$(find $HOME/.mail/*/inbox/new/ -type f | wc -l)" @@ -39,4 +25,3 @@ then osascript -e "display notification \"$new new mails.\" with title \"You got mail.\"" fi fi - |