.B error-msg
above.
.TP
+.I NOTIFY_FAXMASTER
+(an underscore ``_'' character is between NOTIFY and FAXMASTER)
+indicates whether or not the HylaFAX administrator should be notified
+regarding incoming facsimile. Default is ``always''. Also available are
+``never'', which means to never send any received facsimile notification,
+and ``errors'', which means to send notification only if there were
+reception errors.
+.TP
.I SENDER
is the received TSI of the fax sender.
.TP
PS2PDF=ps2pdf
TOADDR=FaxMaster
TIFFINFO=tiffinfo
+NOTIFY_FAXMASTER=always
#
# Permit various types of attachment types: ps, tif, pdf
if [ -f etc/FaxDispatch ]; then
. etc/FaxDispatch # NB: FaxDispatch sets SENDTO
fi
- if [ "$TOADDR" != "$SENDTO" ]; then # don't send FaxMaster duplicate
+ #
+ # Don't send FaxMaster duplicates, and FaxMaster may not even
+ # want a message at all, depending on NOTIFY_FAXMASTER.
+ #
+ case $NOTIFY_FAXMASTER$MSG in
+ never*) NOTIFY_FAXMASTER=no;;
+ errors) NOTIFY_FAXMASTER=no;;
+ *) NOTIFY_FAXMASTER=yes;;
+ esac
+ if [ "$TOADDR" != "$SENDTO" -a "$NOTIFY_FAXMASTER" != "no" ]; then
(echo "To: $TOADDR"
echo "From: The HylaFAX Receive Agent <fax>"
echo "Subject: Facsimile received from $SENDER";