Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] Mailing received TIF's from faxrcv script (MIIME question)
Hi All,
an alternative solution is given by mmencode:
man mmencode (extract):
RATIONALE
Mimencode is intended to be a replacement for uuencode for
mail and news use. The reason is simple: uuencode
doesn't work very well in a number of circumstances and
ways. In particular, uuencode uses characters that don't
translate well across all mail gateways (particularly
ASCII <-> EBCDIC gateways). Also, uuencode is not stan
dard -- there are several variants floating around, encod
ing and decoding things in different and incompatible
ways, with no "standard" on which to base an implementa
tion. Finally, uuencode does not generally work well in a
pipe, although some variants have been modified to do so.
Mimencode implements the encodings which were defined for
MIME as uuencode replacements, and should be considerably
more robust for email use.
the same code with mmencode:
echo ""
echo "--$MIMEBOUNDARY"
echo "Content-Type: image/tiff; name=$FILE"
echo "Content-Description: FAX document"
echo "Content-Transfer-Encoding: base64"
echo ""
/usr/bin/mmencode $FILE 2>/dev/null
echo ""
echo "--$MIMEBOUNDARY--"
I'm using that and works fine.
Best regards,
Giulio Orsero wrote:
>
> On Wed, 29 Nov 2000 12:21:04 +0100, you wrote:
>
> >The final Mime line is:
> >"Content-Transfer-Encoding: 7bit"
> ...
> UUENCODE=/usr/bin/uuencode
> ...
> ...
> ...
>
> echo "--$MIMEBOUNDARY"
> echo "Content-Type: image/tiff; name=$FILE"
> echo "Content-Description: FAX document from $SENDER"
> echo "Content-Transfer-Encoding: base64"
> echo ""
> $UUENCODE -m $FILE $FILE|$GREP -E -v "^begin|^====$" 2>/dev/null
> echo ""
> echo "--$MIMEBOUNDARY"
> --
> giulioo@pobox.com
>
> ____________________ HylaFAX(tm) Users Mailing List _______________________
> To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
--
Altamiro M. Diniz diniz@darumaorga.com.br
DARUMA ORGA Card Systems S.A. Orga Prepaid Service Center - OPSC
Av. Independencia 3451, Taubate, Sao Paulo, BRAZIL, 12.032-000
Tel: +55.12.281.1900 X.110 Fax: +55.12.281.1909
Hot Line: +55.12.281.1925, Mo. to Fr., 08:00 to 17:00 UTC-3 DST+1
www.daruma.com.br www.orga.com www.darumaorga.com.br
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null