diff options
Diffstat (limited to 'localshowmailreceived')
-rwxr-xr-x | localshowmailreceived | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localshowmailreceived b/localshowmailreceived index b1a6511..468f106 100755 --- a/localshowmailreceived +++ b/localshowmailreceived @@ -3,14 +3,14 @@ # /usr/local/sbin/localshowmailreceived # Copyright 2007 Jonas Smedegaard <dr@jones.dk> # -# $Id: localshowmailreceived,v 1.2 2007-09-27 21:32:22 jonas Exp $ +# $Id: localshowmailreceived,v 1.3 2007-09-27 21:43:37 jonas Exp $ # # List recently received emails # # TODO: Handle other indicatiors than AMaViS # -logfiles=1 +logfiles="${logfiles:-1}" maildomain=$(if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi;) find /var/log -name 'mail.log*' | sort -nr -t. -k3 | tail -n "$logfiles" | xargs zcat -f \ |