Hylafax Mailing List Archives

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

Re: [hylafax-users] Problem with TIFF attachment



Hi Adam,

Thanx for the info, I have checked this as well, and double checked against
your notes, and it is 100% correct according to your notes as well.

The only difference is that I also have a separate uuencode script as per
recommendations on the Hylafax how-to's

Regards
Anthony

-----Original Message-----
From: Adam Smith [mailto:adam.smith@sageautomation.com]
Sent: 31 January 2003 01:06 AM
To: anthonye@attunetech.com
Cc: hylafax-users@hylafax.org
Subject: RE: [hylafax-users] Problem with TIFF attachment


Anthony,

> I get a TIFF attachment of only 59 bytes, and has nothing
> in it. The fax000??.tif file is in the recvq directory, and
> if I manually uuencode and email it, it is 100% fine. (Any ideas)

As far as I know, HylaFAX uses mimencode.

Have you modified your faxrcvd script in any way?  I certainly did,
because I wanted my delivery reports to read differently and such.  If
you have modified it, just check a few things:

Line 204+ of bin/faxrcvd tells us that if the filetype is 'tif,' add the
four Content- lines to the email so the email client knows how to
interpret the attachment:

         echo "--$MIMEBOUNDARY"
         if [ "$FILETYPE" = "tif" ]; then
             echo "Content-Type: image/tiff; name=\"$FILENAME.tif\""
             echo "Content-Description: FAX document"
             echo "Content-Transfer-Encoding: base64"
             echo "Content-Disposition: attachment;
filename=\"$FILENAME.tif\""
             echo ""
             $MIMENCODE $FILE 2>/dev/null

Don't forget that this script is creating an email file.  It can't have
any blank lines in the wrong place or anything else erroneous.  Make
sure you haven't got any extra lines or anything that might foul up the
mimencode.

Make sure line 235 onwards is correct.

         echo ""
         echo "--$MIMEBOUNDARY--"
        ) | 2>&1 $SENDMAIL -ffax -oi $SENDTO

Take note of the MIME boundaries.  Once you have received the fax and
Hylafax has processed it and sent it through, loko at
/var/spool/mail/$username without using a mail program, and you'll see
the full email including all attachments.  If the encoded attachment
doesn't look like 59 bytes of data, it's probably not, and it's probably
not being set out in the email correctly.

Hope this is of any help, because it was exactly my solution and I had
the same problems :)




--
Adam Smith
Information Technology Officer
SAGE Automation Ltd.

adam.smith@sageautomation.com
http://www.sageautomation.com


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services