summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsync-mail2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync-mail b/sync-mail
index 78fbc2f..21984a3 100755
--- a/sync-mail
+++ b/sync-mail
@@ -26,10 +26,10 @@ case `date +"%a"` in
esac
new="$(find $HOME/.mail/*/inbox/new/ -type f | wc -l)"
-old="$(find $HOME/.mail/*/inbox/cur/ -type f | wc -l)"
if [ $new -gt 0 ]
then
+ $(which notmuch) new
if [[ $(uname) == "Linux" ]]; then
export DISPLAY=:0
export XAUTHORITY=$HOME/.Xauthority;