HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] faxrcvd => Fax send per Mime E-Mail
Thomas Reiñ wrote:
> Hello,
>
> I try to send incoming Fax as an mime-codet tif File per E-Mail.
> So i changed bin/faxrcvd to:
>
> --cut
> echo ""
> echo "--$MIMEBOUNDARY"
> echo ""
> echo "Content-Type: application/octet-stream; name=Fax.tif"
> echo "Content-Transfer-Encoding: base64"
> echo "Content-Disposition: attachment; name=fax.tif"
> echo""
> $FAX2PS $FAX Fax.tif 2>/dev/nul
May be /dev/null ?
>
> echo ""
> echo "--$MIMEBOUNDARY--"
>
> --cut
>
> where
> FAX2PS="/usr/bin/uuencode -m"
FILENAME=`/bin/basename $FILE`
echo ""
echo "--$MIMEBOUNDARY"
echo "Content-Type: image/tiff; name=\"$FILENAME\""
echo "Content-Disposition: inline; filename=\"$FILENAME\""
echo "Content-Description: FAX document"
echo "Content-Transfer-Encoding: base64"
echo ""
if /usr/bin/tiffcp $FILE $FILE.2 &>/dev/null; then # Win95's Imaging can't do with 2D
tiffs
/usr/bin/mimencode $FILE.2 2>/dev/null
/bin/rm -f $FILE.2 2>/dev/null
else
/usr/bin/mimencode $FILE 2>/dev/null
fi
echo ""
echo "--$MIMEBOUNDARY--"
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null