From f9339d5553a7c62420a2bd0344bdebdedc11910e Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 30 Sep 2016 13:08:17 +0200 Subject: offlineimap-notification: only inbox --- offlineimap-notification | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'offlineimap-notification') diff --git a/offlineimap-notification b/offlineimap-notification index 35abb24..eeecff0 100755 --- a/offlineimap-notification +++ b/offlineimap-notification @@ -1,11 +1,11 @@ #!/usr/bin/zsh -new="$(find $HOME/.mail/*/*/new/ -type f | wc -l)" -old="$(find $HOME/.mail/*/*/cur/ -type f | wc -l)" +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 - export DISPLAY=:0; export XAUTHORITY=~/.Xauthority; - notify-send "You've got mail." + export DISPLAY=:0; export XAUTHORITY=~/.Xauthority; + notify-send "You've got mail." fi -- cgit v1.2.3