On 28-May-2001 Marco Trecate wrote:
> I don't know if anyone cares, but here's how I managed to use XMail with
> Hylafax for mail notification (I don't use fax delivery). The main problem
> is that the sendmail utility in XMail 0.71 doesn't understand the "-t"
> option which forces sendmail (the "real" one) to get the recipient address
> from the "To" field in the actual message's header instead of from the
> command line.
>
> 1) In /var/spool/fax/bin/notify, modify the last line adding the following
> as the last parameter to sendmail:
> `cat $QFILE | $AWK --field-separator=: '$1 == "mailaddr" { print $2 }'`
>
> 2) In /var/spool/fax/bin/wedged, find the point where sendmail is called and
> add your faxmaster's address as the last parameter to sendmail. This is
> quite goofy, anyway it works.
Marco,
the To: header field could be something like :
"Marco Trecate <[EMAIL PROTECTED]>"
so you need a better awk filter to handle all cases.
As a suggestion i'd avoid to cat-ting the entire file to the awk script.
Something like `head -n 50 $QFILE` should be enough.
- Davide