Gnus development mailing list
 help / color / mirror / Atom feed
From: Toby Speight <Toby.Speight@streapadair.freeserve.co.uk>
Subject: Re: PDF's as base64 vs. Q/P encoded attachments
Date: 16 Jul 1999 11:22:35 +0100	[thread overview]
Message-ID: <uhfn499n8.fsf@lanber.cam.citrix.com> (raw)
In-Reply-To: Graham Todd's message of "Fri, 16 Jul 1999 05:13:56 GMT"

Graham> Graham Todd <URL:mailto:gtodd@yorku.ca>

0> In <URL:news:x67lo12n1p.fsf@ninga.ellerbeck.org>, Graham wrote:

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

I wonder if PDF is sensitive to newline-mangling?  AIUI, PDF is based
on Postscript, which should be okay, but it's possible that some
application/* types need newlines preserving as "=0A=\n".  A pain!

Could you check this hypothesis?  Compose a mail on a Unix platform,
with two attachments - one q-p encoded normally, and one with newlines
explicitly kept, as above (use query-replace or something, after
MIME-encoding).  Then try reading both on a Windows platform.


Graham> I did something like this to fix it:
Graham>   (push '("application/pdf" base64)
Graham>         mm-content-transfer-encoding-alist)
Graham> so that PDF's are always encoded base64.

Seems a sensible workaround, but if there's a true bug, it would be
nice to nail it.

BTW - Lars, did you remember to include '=' with the non-ASCII
characters for the purposes of estimating q-p size?



  reply	other threads:[~1999-07-16 10:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-16  5:13 Graham Todd
1999-07-16 10:22 ` Toby Speight [this message]
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=uhfn499n8.fsf@lanber.cam.citrix.com \
    --to=toby.speight@streapadair.freeserve.co.uk \
    /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).