Gnus development mailing list
 help / color / mirror / Atom feed
From: Graham Todd <gtodd@yorku.ca>
Subject: PDF's as base64 vs. Q/P encoded attachments
Date: Fri, 16 Jul 1999 05:13:18 GMT	[thread overview]
Message-ID: <x67lo12n1p.fsf@ninga.ellerbeck.org> (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        



             reply	other threads:[~1999-07-16  5:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-16  5:13 Graham Todd [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x67lo12n1p.fsf@ninga.ellerbeck.org \
    --to=gtodd@yorku.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).