HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HylaFax and changing mail attachment format ?



> 
> I think I have to change one of the scripts in:
> /var/spool/fax/bin/FAXRCVD or
> /var/spool/fax/bin/POLLRCVD
> 
> But I'm not so familar with script (SENDMAIL) programming.

It's faxrcvd (all lower case) for normal faxes.  It's nothing to do with
sendmail, although it is related to internet mail structure.

This is not entirely trivial because faxrcvd is assuming that the Postscript
file is in the printable subset of true ASCII (32 to 126, space, and
newline), whereas the TIFF file has to be treated as binary.

The cleanest approach is probably to replace all the mail header logic and
use the metamail package.

There are dirty approaches using uuencode, but exactly how you use this
will depend on what PC mail programs you are using, e.g. you might need
to remove all the MIME headers and ensure that the uuencoded material is
near the start of the message.  Some lite versions of commercial software
don't support uuencode.

If you don't need the TSI filtering, and have only one destination address,
you should probably throw away the whole script and write a short one
based on uuencode or metamail.  A minimal uuencode version that, only works
properly for successful receives, might be something like:

  :
  uuencode $1 $1 | mail -s 'Received Fax' user@host




Project hosted by iFAX Solutions