summaryrefslogtreecommitdiff
path: root/sync-mail
diff options
context:
space:
mode:
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
-