summaryrefslogtreecommitdiffstats
path: root/etc/periodic/daily/440.status-mailq
blob: a9336fcf4c12917ff35b7639e73d4c9cf66a9d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# $FreeBSD$
#
if [ -x /usr/bin/mailq -a -d /var/spool/mqueue ] ; then
    echo ""
    echo "Mail in local queue:"

    mailq

    # 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}'
fi
OpenPOWER on IntegriCloud