#!/bin/sh

test -f /usr/sbin/xferstats || exit 0

# Generate HylaFAX's monthly fax statistics

# Generate statistics for faxes during the past month. Two reports
# are generated - one ordered by the destination fax number, the
# other ordered by the sender.

/usr/sbin/xferstats -dest | mail -s "Monthly fax stats - by destination" faxmaster

/usr/sbin/xferstats -send | mail -s "Monthly fax stats - by sender" faxmaster
