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: 22 Aug 2002 13:20:46 +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 1030018860 27106 127.0.0.1 (22 Aug 2002 12:21:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 12:21:00 +0000 (UTC) Cc: =?iso-8859-1?q?Bj=F8rn?= Mork , 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 17hqxO-000733-00 for ; Thu, 22 Aug 2002 14:20:59 +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 17hqya-0002F6-00; Thu, 22 Aug 2002 08:22:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hqxJ-00029C-00 for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2002 08:20:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hqxH-000290-00 for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2002 08:20:53 -0400 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hqxH-00028v-00 for bug-gnu-emacs@gnu.org; Thu, 22 Aug 2002 08:20:51 -0400 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 17hqxD-0007gY-00; Thu, 22 Aug 2002 13:20:47 +0100 Original-To: Simon Josefsson User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 30 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:3276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3276 [Re-sent due to encoding problems :-/.] Simon Josefsson writes: > Bj=F8rn Mork 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? >=20 > 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?