#!/bin/sh

# Run the daily report with conservative settings (delete as little as possible)
# If you're short on disk space, you might want to tune this commandline.
# Don't run faxcron if HylaFAX+ has not been setup using faxsetup.

# 'man faxcron' for more info

: ${FAXSPOOL:=/var/spool/hylafax+}

[[ -f ${FAXSPOOL}/etc/setup.cache ]] || exit 1

faxcron \
        -info 60 \
        -log 730 \
        -rcv 3650 \
        -tmp 7 \
| mail -s "HylaFAX Usage Report" faxmaster
