I had removed the # lines below to avoid them to appear no e-mail (because they are useless!)
echo "--$MIMEBOUNDARY"
echo "Content-Type: text/plain; charset=us-ascii"
echo "Content-Transfer-Encoding: 7bit"
echo ""
# echo "$FILE (ftp://$HOSTNAME:$PORT/$FILE):"; $INFO -n $FILE
# echo "ReceivedOn: $DEVICE"
and changed name file from a CommID number to a more significant with:
$MIMENCODE $FILE 2>/dev/null
elif [ "$FILETYPE" = "pdf" ]; then
#echo "Content-Type: application/pdf; name=\"c$COMMID.pdf\""
echo "Content-Type: application/pdf; name=\"$FILE.pdf\""
#echo "Content-Disposition: attachment; filename=\"c$COMMID.pdf\""
echo "Content-Disposition: attachment; filename=\"$FILE.pdf\""
I hope this help you to get more beatiful faxes... mines are... without that FTP link and strange name... and hope so that RequestedDeletion can forget about my completly "OOPS" on previous message!
BTW: to have PDF files working you should see:
http://www.hylafax.org/howto/delivery.htmlwhere there is this:
4.2 Attached TIFF/PostScript/PDF Mail Delivery
By using this procedure, the default mail will be sent without the ftp links, but the fax image will be attached to that notification mail.
Create the file etc/FaxDispatch (usually /var/spool/hylafax/etc/FaxDispatch) so that it contains the following lines:
FILETYPE=tif;
SENDTO=FaxMaster;
Substitute pdf or ps for tif as you desire.
Note that because TIFF and PDF are binary file types, metamail or some other UU-encoding program must be installed. If you do not use metamail's mimencode, also include a line like
MIMENCODE=bin/uuencode_it;
in your FaxDispatch file where bin/uuencode_it is an executable shell script of the form
#!/bin/sh
uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null
HylaFAX versions prior to 4.1.1 do not support the FILETYPE option in FaxDispatch, and so the attachments will always be Postscript. Users of HylaFAX versions prior to 4.1.1 (shame on you) may be interested in using the old faxrcvd-mail scripts by Noel Burton-Krahn. They can be found here. Note that these WILL NOT WORK as-is on HylaFAX versions 4.1.1 and newer.
I have done it with success! Enjoy!