From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.bugs Subject: Re: bad rfc2047 encoding Date: 30 Aug 2002 18:59:01 +0100 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1030730391 8112 127.0.0.1 (30 Aug 2002 17:59:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2002 17:59:51 +0000 (UTC) Cc: Simon Josefsson , bugs@gnus.org, bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17kq3g-00026Z-00 for ; Fri, 30 Aug 2002 19:59:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kq58-00079y-00; Fri, 30 Aug 2002 14:01:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17kq3B-0006y9-00 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2002 13:59:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17kq39-0006xr-00 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2002 13:59:17 -0400 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kq39-0006xm-00 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2002 13:59:15 -0400 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 17kq2v-00040y-00; Fri, 30 Aug 2002 18:59:01 +0100 Original-To: =?iso-8859-1?q?Bj=F8rn?= Mork Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3366 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3366 Bj=F8rn Mork 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 >=20 > From: "Bj=F8rn Mork" >=20 > would be >=20 > From: =3D?iso-8859-1?q?=3D22Bj=3DF8rn_Mork=3D22?=3D 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 `=3D?iso-8859-1?q?Bj=3DF8rn_Mork?=3D'. 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?]