Gnus development mailing list
 help / color / mirror / Atom feed
* PDF's as base64 vs. Q/P encoded attachments
@ 1999-07-16  5:13 Graham Todd
  1999-07-16 10:22 ` Toby Speight
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Graham Todd @ 1999-07-16  5:13 UTC (permalink / raw)



This is just for the information of anyone who has a similar problem
since I'm not too knowledgeable about MIME and encoding schemes.

There was a thread a while ago about how to decide between encoding
schemes for attachments and Lars wrote a function that switched
between them based on efficiency. I think it was decided that if
roughly 1/6 of the characters were non-ASCII, then base64 should be
used otherwise Q/P (I may be wrong here).

So Gnus now tries to encode PDF's I create as Q/P (I'm pretty sure it
didn't do this before).  The problem is that receiving PDF's as Q/P
seems to break the MIME handling of the Windows version of Netscape
Mail somehow so that Windows users that I correspond with couldn't
read the attached PDF files in Acrobat. Acrobat gave an error message
saying the files were broken. As an aside I can detach and read PDF's
sent as Q/P content to myself using the Unix (linux & freebsd)
versions of Acrobat and Netscape just fine.

If the cut-off point for encoding is 1/6 or more non-ASCII characters
most PDF's would/should get encoded as base64 wouldn't they?  Anyway
they appear ASCIIish to Gnus.

I did something like this to fix it:

(push '("application/pdf" base64) mm-content-transfer-encoding-alist)

so that PDF's are always encoded base64.

regards,

-- 
Graham Todd        



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1999-09-22 14:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-16  5:13 PDF's as base64 vs. Q/P encoded attachments Graham Todd
1999-07-16 10:22 ` Toby Speight
1999-07-21 22:18   ` Graham Todd
1999-08-27 19:03   ` Lars Magne Ingebrigtsen
1999-07-16 16:39 ` Robert Bihlmeyer
1999-07-21 22:19   ` Graham Todd
1999-08-27 19:07 ` Lars Magne Ingebrigtsen
1999-09-22  9:41 ` [PATCH] [BUG] Binary attachments use wrong encoding (was Re: PDF's as base64 vs. Q/P encoded attachments) Kim-Minh Kaplan
1999-09-22 14:16   ` Kim-Minh Kaplan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).