diff options
author | Patrick Simianer <pks@pks.rocks> | 2020-08-02 09:51:34 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2020-08-02 09:51:34 +0200 |
commit | 560e6734be67f823793c56959bd217970409fb23 (patch) | |
tree | b7cc34994f3d149e6a91ea751c9fe760334bb421 /sync-mail | |
parent | ae2265bb794656108f42512f2d6d4aff028b3be3 (diff) |
sync-mail
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 - |