1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1998-04-17 22:53:59 +00:00
|
|
|
# $Id: 440.status-mailq,v 1.2 1998/01/18 22:28:06 wosch Exp $
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
1998-04-17 22:53:59 +00:00
|
|
|
if [ -x /usr/bin/mailq -a -d /var/spool/mqueue ] ; then
|
1997-08-16 17:04:02 +00:00
|
|
|
echo ""
|
|
|
|
echo "Mail in local queue:"
|
|
|
|
|
|
|
|
mailq
|
1998-01-18 22:28:06 +00:00
|
|
|
|
|
|
|
# If you run a busy mail server or mail relay, you may prefer
|
|
|
|
# a shorter and better formatted message.
|
|
|
|
#
|
|
|
|
# mailq | perl -ne 'print if /^\s+\S+@/' |
|
|
|
|
# sort | uniq -c | sort -nr | awk '$1 > 1 {print $1, $2}'
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|