From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: automatic MIME decoding in rmail Date: Tue, 28 Mar 2006 14:33:54 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1143574565 1250 80.91.229.2 (28 Mar 2006 19:36:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 19:36:05 +0000 (UTC) Cc: emacs-devel@gnu.org, evilborisnet@netscape.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 28 21:36:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOJyf-0007bw-JU for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2006 21:35:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOJyf-0003pp-4a for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2006 14:35:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FOJwy-0002m8-VK for emacs-devel@gnu.org; Tue, 28 Mar 2006 14:33:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FOJwy-0002lW-19 for emacs-devel@gnu.org; Tue, 28 Mar 2006 14:33:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOJwx-0002lS-Ql for emacs-devel@gnu.org; Tue, 28 Mar 2006 14:33:55 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FOJyk-0004B5-LR for emacs-devel@gnu.org; Tue, 28 Mar 2006 14:35:46 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FOJww-0005rM-FS; Tue, 28 Mar 2006 14:33:54 -0500 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Mon, 27 Mar 2006 18:18:23 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52167 Archived-At: As far as I know, it's is prefectly valid to add any random number of arbitrary non-standard args. So "format=[a-z]+" is too restrictive. It is an easy fix that may work in practice. We'd probably want something more like: (concat "^content-type:[ ]*text/plain;" "\\(?:[ \t\n]*[-a-z]+=\\(?:[^\";]+\\|\"[^\"]+\"\\);\\)*" "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?") I don't mind installing this, but it may not be really correct, any more than my quick fix is. Trying to solve the problem in a fully general way could be a lot harder, however. although I can't remember the exact BNF rules for this MIME header, so it can probably do with a bit more work. Yes, that's what could make a fully correct solution hard.