aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmutt/notify.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mutt/notify.sh b/mutt/notify.sh
index 91a4612..d8fd6cc 100755
--- a/mutt/notify.sh
+++ b/mutt/notify.sh
@@ -18,8 +18,10 @@ echo "$1" | grep -q "New" > /dev/null 2>&1
if [ $? -eq 0 ];
then
xset led 1
-
+ touch ~/.mutt/newmail
else
xset -led 1
+if [ -e ~/.mutt/newmai ];then
+ rm ~/.mutt/newmail
+fi
fi
-