nsbin/old/mails_counter
Nico Schottelius 844c1b8170 more cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-29 18:25:27 +01:00

23 lines
761 B
Bash
Executable file

#!/bin/bash
#
# Author: Nico Schottelius <nicos@pcsystems.de>
# Date: 12th of October 2k
# Last Modifed: dito
# Copyright: GPL 2.0 or newer
#
echo "Starting Netscape Mail counter (c) by Nico Schottelius (nicos@pcsystems.de)"
#FILE="/tmp/from.`date +%j`"
#rm $FILE 2> /dev/null
echo "Please wait, counting mails..."
find ~/nsmail -name \* -exec cat {} 2> /dev/null \; | egrep "^From" | grep "@" \
| grep -v Nico | less
#grep From: $FILE.temp | grep -v Drafts | grep -v Sent | grep -v Trash | grep -v telmich | grep -v nicos | grep @ >> $FILE 2> /dev/null
#echo "Action: sorting"
#sort $FILE -o $FILE.temp
#echo "Action: show number of mails"
#less $FILE.temp
#echo "Action: cleaning up"
#rm $FILE $FILE.temp 2>/dev/null
echo "Do you have more than 4000 ? :-)"