]> gitweb.fluxo.info Git - utils-mail.git/commitdiff
Check for postponed file
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Nov 2016 12:31:07 +0000 (10:31 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Nov 2016 12:31:07 +0000 (10:31 -0200)
postponed

index d08d2811024bdf0dc8ef1da5bc86f9c484705de3..38aaf9e05c470f1def1aafa93ab00e4903cb4bb2 100755 (executable)
--- a/postponed
+++ b/postponed
@@ -5,6 +5,13 @@
 
 # Setup
 POSTPONED="$HOME/temp/mutt/postponed"
+
+# Check
+if [ ! -e "$POSTPONED" ]; then
+  exit
+fi
+
+# Calculate
 TOTAL="`grep "^From: " $POSTPONED | wc -l`"
 
 # Print