diff options
Diffstat (limited to 'localshowmailreceivedfromdomain')
-rwxr-xr-x | localshowmailreceivedfromdomain | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localshowmailreceivedfromdomain b/localshowmailreceivedfromdomain index d83f394..ab84bb8 100755 --- a/localshowmailreceivedfromdomain +++ b/localshowmailreceivedfromdomain @@ -3,14 +3,14 @@ # /usr/local/sbin/localshowmailreceivedfromdomain # Copyright 2007 Jonas Smedegaard <dr@jones.dk> # -# $Id: localshowmailreceivedfromdomain,v 1.2 2007-09-15 02:06:16 jonas Exp $ +# $Id: localshowmailreceivedfromdomain,v 1.3 2007-09-27 21:43:37 jonas Exp $ # # List emails recently received from a certain domain # # TODO: Handle other indicatiors than AMaViS # -logfiles=1 +logfiles="${logfiles:-1}" find /var/log -name 'mail.log*' | sort -nr -t. -k3 | tail -n "$logfiles" | xargs zcat -f \ | egrep -- '@'"$1"'> -> ' \ |