aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-11-29 10:31:07 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-11-29 10:31:07 -0200
commit7678b69825b51e3697a0acce0c8b150be0398f29 (patch)
tree135b114e1a041e116e3b0fc87bd0458859f3433b
parent9da1c6771fd7fdb8f0bb7d2abda050e9c13674cd (diff)
downloadutils-mail-7678b69825b51e3697a0acce0c8b150be0398f29.tar.gz
utils-mail-7678b69825b51e3697a0acce0c8b150be0398f29.tar.bz2
Check for postponed file
-rwxr-xr-xpostponed7
1 files changed, 7 insertions, 0 deletions
diff --git a/postponed b/postponed
index d08d281..38aaf9e 100755
--- 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