all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Love <d.love@dl.ac.uk>
Cc: "Bjørn Mork" <bmork@dod.no>, bugs@gnus.org, bug-gnu-emacs@gnu.org
Subject: Re: bad rfc2047 encoding
Date: 22 Aug 2002 13:20:46 +0100	[thread overview]
Message-ID: <rzq1y8rccf5.fsf@albion.dl.ac.uk> (raw)
In-Reply-To: ilu3ct8nng7.fsf@latte.josefsson.org

[Re-sent due to encoding problems :-/.]

Simon Josefsson <jas@extundo.com> writes:

> Bjørn Mork <bmork@dod.no> writes:

[In something that hasn't reached here...]

> Yup, I now agree parsing the header is required.  RFC 2047 is only to
> be used in some parts of the header.  I wonder if rfc822.el is up to
> this though,

I don't think it does the right job.

> I remember it didn't cope with non-ASCII properly at all.

In what way?  I went through checking for such problems long ago.  I
doubtless missed some, and maybe some have been added since, but they
should be easy to fix.  (Emacs 21 only -- I don't know how you'd do it
properly in XEmacs.)

> > In this example the quoted-string should probably be unquoted and
> > then encoded. Or would that break something?
> 
> It could perhaps encode the quotes too.

The spirit of the RFC and examples seem to suggest unquoting the
string, encoding it, and (perhaps) re-quoting encoded word sequences
on decoding.  Is the correct behaviour really not explicitly specified
somewhere?

  reply	other threads:[~2002-08-22 12:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-15 22:00 bad rfc2047 encoding Dave Love
     [not found] ` <ilu8z36li3m.fsf@latte.josefsson.org>
2002-08-20 17:02   ` Dave Love
2002-08-20 17:22     ` Simon Josefsson
2002-08-21 16:54       ` Dave Love
2002-08-21 17:06         ` Simon Josefsson
2002-08-21 17:40           ` Reiner Steib
2002-08-22 11:47           ` Dave Love
2002-08-22 17:48             ` Simon Josefsson
2002-08-30 18:08               ` Dave Love
     [not found]       ` <hvofbxtmpd.fsf@rasputin.ws.nextra.no>
2002-08-21 17:14         ` Simon Josefsson
2002-08-22 12:20           ` Dave Love [this message]
     [not found]           ` <rzq4rdncdta.fsf@albion.dl.ac.uk>
2002-08-22 13:50             ` Bjørn Mork
2002-08-30 17:59               ` Dave Love
2002-08-22 17:55             ` Simon Josefsson

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=rzq1y8rccf5.fsf@albion.dl.ac.uk \
    --to=d.love@dl.ac.uk \
    --cc=bmork@dod.no \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=bugs@gnus.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.