aboutsummaryrefslogtreecommitdiff
path: root/misc/email/checkmail
diff options
context:
space:
mode:
Diffstat (limited to 'misc/email/checkmail')
-rwxr-xr-xmisc/email/checkmail14
1 files changed, 0 insertions, 14 deletions
diff --git a/misc/email/checkmail b/misc/email/checkmail
deleted file mode 100755
index 078f111..0000000
--- a/misc/email/checkmail
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-#
-# Simple mail counter
-# Inspired by http://www.vivaolinux.com.br/dicas/verDica.php?codigo=2432
-#
-
-# Fetch and compute
-FETCH=`fetchmail -c`
-TOTAL=`echo $FETCH | awk '{ print $1 }'`
-SEEN=`echo $FETCH | awk '{ print $3 }' | sed -e 's/(//'`
-NEW=`echo "$TOTAL - $SEEN" | bc`
-
-# Display response
-echo $NEW/$TOTAL