diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-13 17:32:58 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-13 17:32:58 -0200 |
commit | a64487d5db57b9e281a5953b082618d2c1fca8a4 (patch) | |
tree | bfd1f26e5eaccf9cfd3d2809a49161beceb7f9b6 /misc/email | |
parent | f6978c1b28db3308808f2e303c607047f97a96c5 (diff) | |
download | scripts-a64487d5db57b9e281a5953b082618d2c1fca8a4.tar.gz scripts-a64487d5db57b9e281a5953b082618d2c1fca8a4.tar.bz2 |
Removing old scripts and cleaning up some code
Diffstat (limited to 'misc/email')
-rwxr-xr-x | misc/email/checkmail (renamed from misc/email/checkmail.sh) | 7 | ||||
-rwxr-xr-x[-rw-r--r--] | misc/email/vcard-filter | 0 |
2 files changed, 6 insertions, 1 deletions
diff --git a/misc/email/checkmail.sh b/misc/email/checkmail index 3a21c9a..078f111 100755 --- a/misc/email/checkmail.sh +++ b/misc/email/checkmail @@ -1,9 +1,14 @@ #!/bin/bash -# inspirado em http://www.vivaolinux.com.br/dicas/verDica.php?codigo=2432 +# +# 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 diff --git a/misc/email/vcard-filter b/misc/email/vcard-filter index 363aa07..363aa07 100644..100755 --- a/misc/email/vcard-filter +++ b/misc/email/vcard-filter |