From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evil Boris Newsgroups: gmane.emacs.devel Subject: Re: automatic MIME decoding in rmail Date: Tue, 16 May 2006 10:55:28 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147793395 6101 80.91.229.2 (16 May 2006 15:29:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 May 2006 15:29:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 17:29:51 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 1Fg1J5-0001rD-Ed for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 17:17:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fg1J4-0000dz-TP for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 11:17:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fg1IE-0000Lh-Tn for emacs-devel@gnu.org; Tue, 16 May 2006 11:17:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fg1ID-0000Kp-GH for emacs-devel@gnu.org; Tue, 16 May 2006 11:17:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fg1ID-0000Kg-4d for emacs-devel@gnu.org; Tue, 16 May 2006 11:17:01 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fg1Kr-0004eN-Ss for emacs-devel@gnu.org; Tue, 16 May 2006 11:19:46 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fg17y-0007Pm-I9 for emacs-devel@gnu.org; Tue, 16 May 2006 17:06:27 +0200 Original-Received: from 207-38-193-43.c3-0.wsd-ubr1.qens-wsd.ny.cable.rcn.com ([207.38.193.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 May 2006 17:06:26 +0200 Original-Received: from evilborisnet by 207-38-193-43.c3-0.wsd-ubr1.qens-wsd.ny.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 May 2006 17:06:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207-38-193-43.c3-0.wsd-ubr1.qens-wsd.ny.cable.rcn.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:IVJvcdfdwvgIVxOvCTuU/ObcB24= 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:54581 Archived-At: Richard Stallman writes: > which sounded odd, until I realized that there is a ":?" missing in > front of "format\\|". So perhaps one should change the regexp and > put (match-string 1) back in? > > Ok. Was the change ever made? It does not seem to be in CVS. [Reminder: I am referring to undoing the change: ---------------------------- revision 1.425 date: 2006-04-19 09:55:40 +0000; author: rfrancoise; state: Exp; lines: +2 -2 (rmail-convert-to-babyl-format): Use second group from `rmail-mime-charset-pattern'. ---------------------------- in rmail.el and changing the regexp ===== ;;;###autoload (defvar rmail-mime-charset-pattern (concat "^content-type:[ ]*text/plain;" "\\(?:[ \t\n]*\\(format\\|delsp\\)=\"?[-a-z0-9]+\"?;\\)*" "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?") "Regexp to match MIME-charset specification in a header of message. The first parenthesized expression should match the MIME-charset name.") ====== to ====== ;;;###autoload (defvar rmail-mime-charset-pattern (concat "^content-type:[ ]*text/plain;" "\\(?:[ \t\n]*\\(?:format\\|delsp\\)=\"?[-a-z0-9]+\"?;\\)*" "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?") "Regexp to match MIME-charset specification in a header of message. The first parenthesized expression should match the MIME-charset name.") ======= [just added "?:" in front of "format"] Thanks, --Boris