summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2020-02-23 14:29:34 +0100
committerPatrick Simianer <pks@pks.rocks>2020-02-23 14:29:34 +0100
commit70557846812df909368476fcd09bf8e8a8cd266b (patch)
treea65d5e54cc148cc326da0012e7e00ed23634523b
parent91841ab64aa9c4fb642932b45f69025da033e1b5 (diff)
sync-mail: fixes, zero-inbox
-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;