From b4e2708c6f8cc2191c581aef404803478e65e678 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Sep 2014 16:47:55 -0300 Subject: Moved scripts to custom repos --- misc/email/checkmail | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 misc/email/checkmail (limited to 'misc/email/checkmail') 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 -- cgit v1.2.3