Gnus development mailing list
 help / color / mirror / Atom feed
From: Toby Speight <Toby.Speight@streapadair.freeserve.co.uk>
Subject: Re: GIF/jpeg attached as quoted-printable in MIME?
Date: 27 Sep 1999 19:26:08 +0100	[thread overview]
Message-ID: <ubtaotdmn.fsf@lanber.cam.citrix.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Sep 1999 19:59:07 +0200"

Lars> Lars Magne Ingebrigtsen <URL:mailto:larsi@gnus.org>

0> In article <m3905s5j84.fsf@quimbies.gnus.org>, Lars wrote:

Lars> Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> writes:

>> I have a concern about whether we do the Right Thing with newlines in
>> quoted-printable.  In text parts, newlines must also have carriage
>> returns; the q-p body will have CRs too, so newlines need not be
>> encoded.  In non-text parts, newlines must not (in general) have CRs
>> added - except those introduced by the QP-encoding.  So "foo\nbar" in
>> a non-text part should become "foo=0Abar" or "foo=0a=\nbar".

Lars> "foo\nbar" in a non-text part should become "foo\nbar", shouldn't
Lars> it?  Canonicalization is only an issue with text parts.

Exactly - but AIUI, encoded body parts are canonicalised during SMTP,
just like unencoded text parts.  Correct me if I'm wrong, but the
"foo\nbar" above will be received as "foo\r\nbar" and the receiver
_may or may not_ convert that back to "foo\nbar" (depending on the
recipient's local conventions).  But if "foo=0a=\nbar" is
canonicalised to "foo=0a=\r\nbar", it still decodes to "foo\nbar",
since "=\r\n" is ignored (the same as "=\n").  Does that make any kind
of sense?

Perhaps this is a topic to bring up in comp.mail.mime?



  reply	other threads:[~1999-09-27 18:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-08 21:24 Bjorn Halvor Solberg
1999-09-09  0:14 ` Bjorn Halvor Solberg
1999-09-25  8:40   ` Lars Magne Ingebrigtsen
1999-09-25 10:23     ` Kai Großjohann
1999-09-25 10:38       ` Lars Magne Ingebrigtsen
1999-09-26 21:46     ` Johan Kullstam
1999-09-27 14:03       ` Toby Speight
1999-09-27 17:59         ` Lars Magne Ingebrigtsen
1999-09-27 18:26           ` Toby Speight [this message]
1999-09-27 18:43             ` Lars Magne Ingebrigtsen

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=ubtaotdmn.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).