failure fax must send to rbeheer@
Rene Fertig (rene.fertig@wtal.de)
Thu, 27 Jan 2000 23:16:25 +0100
Hi Roland.
Roland Slagter PCH Office schrieb am Thu, 27 Jan 2000 14:01:45 +0100:
> only by failed faxes must the user rbeheer the mail for the failed fax
> where can I put the variable for this
> i said in the faxspool sending mail by succes faxes in no
> and sending failed faxes with yes
Set this in your faxrunq.config:
--- snipp -----------------------------------------
failure-send-mail n
failure-call-program /usr/lib/mgetty+sendfax/fax-fail
--- snapp -----------------------------------------
And create a shell- or perl-script "usr/lib/mgetty+sendfax/fax-fail" which
sends the failure-message to rbeheer
e.g.:
--- snipp -----------------------------------------
#!/bin/sh
FAXADMIN=rbeheer
ADDR=`gawk '/mail/ {print $2}' $1`
PHONE=`gawk '/phone/ {print $2}' $1`
FAX=`gawk '/input/ {print $2}' $1`
(
echo Hello.
echo
echo Sending a fax $FAX to $PHONE failed!
echo
echo The log is shown below:
echo "-----------------------------------------------"
gawk '/Status/' $1
) | mail -s "FAXSERVICE: Failure" $ADDR $FAXADMIN
--- snapp -----------------------------------------
This sends a mail to the fax' sender an to rbeheer. Much more is possible
this way.
Ciao, Rene
--
----------------------------------------------------------------------
mailto:rene.fertig@wtal.de http://home.telebel.de/referti/
======================================================================
>>>>>>>>>>>> PGP-Key auf Anfrage +++ PGP-Key on request <<<<<<<<<<<<