summaryrefslogtreecommitdiff
path: root/sync-mail
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2020-08-02 09:51:34 +0200
committerPatrick Simianer <pks@pks.rocks>2020-08-02 09:51:34 +0200
commit560e6734be67f823793c56959bd217970409fb23 (patch)
treeb7cc34994f3d149e6a91ea751c9fe760334bb421 /sync-mail
parentae2265bb794656108f42512f2d6d4aff028b3be3 (diff)
sync-mail
Diffstat (limited to 'sync-mail')
-rwxr-xr-xsync-mail17
1 files changed, 1 insertions, 16 deletions
diff --git a/sync-mail b/sync-mail
index 21984a3..406e49c 100755
--- a/sync-mail
+++ b/sync-mail
@@ -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
-