From: Dave Love <d.love@dl.ac.uk>
Cc: Simon Josefsson <jas@extundo.com>,
bugs@gnus.org, bug-gnu-emacs@gnu.org
Subject: Re: bad rfc2047 encoding
Date: 30 Aug 2002 18:59:01 +0100 [thread overview]
Message-ID: <rzq65xsfct6.fsf@albion.dl.ac.uk> (raw)
In-Reply-To: hvvg63uhnu.fsf@rasputin.ws.nextra.no
Bjørn Mork <bmork@dod.no> writes:
> I am no expert on this, but trying to read RFC2822 and RFC2047 makes
> me think that Simon is right. A 'quoted-string' is a 'word', and may
> as such be replaced by an 'encoded-word'.
Sure.
> The DQUOTE is part of the
> 'quoted-string' and should therefore be encoded with it.
Why should they be there at all?
> So the proper way to encode
>
> From: "Bjørn Mork" <bmork@dod.no>
>
> would be
>
> From: =?iso-8859-1?q?=22Bj=F8rn_Mork=22?= <bmork@dod.no>
I'm not sure that's the right way to look at it, which is probably why
it isn't treated explicitly in the RFC. As far as I remember, the RFC
implies that your name should be encoded as
`=?iso-8859-1?q?Bj=F8rn_Mork?='. Why should quotes be introduced at
all? RFC2822 only deals with ASCII, and defines what ASCII characters
need quoting -- it's silent on non-ASCII isn't it?
> I guess. An example of proper handling of a 'quoted-string' in RFC2047
> would have been nice. But as far as I can see, this is the only way
> you can do compliant encoding without losing any information.
As I understand it, the quotes aren't information content, just
syntax. I'd think they should be stripped when the word is non-ASCII
and the contents should then be rfc2047-encoded. Do any
specifications forbid that?
[Are there any more recent RFCs that are relevant, by any chance?]
next prev parent reply other threads:[~2002-08-30 17:59 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
[not found] ` <rzq4rdncdta.fsf@albion.dl.ac.uk>
2002-08-22 13:50 ` Bjørn Mork
2002-08-30 17:59 ` Dave Love [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rzq65xsfct6.fsf@albion.dl.ac.uk \
--to=d.love@dl.ac.uk \
--cc=bug-gnu-emacs@gnu.org \
--cc=bugs@gnus.org \
--cc=jas@extundo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).