From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.bugs Subject: Mixed case multiword and multiline headers patch Date: 30 Dec 2002 22:05:01 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87lm27kyki.fsf@oak.pohoyda.family> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1041282652 19428 80.91.224.249 (30 Dec 2002 21:10:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2002 21:10:52 +0000 (UTC) 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 18T7BS-000538-00 for ; Mon, 30 Dec 2002 22:10:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18T7Ba-0002ut-00 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2002 16:10:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18T78x-0000Ze-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 30 Dec 2002 16:08:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18T77W-0008BA-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 30 Dec 2002 16:06:50 -0500 Original-Received: from mailbox1.ucsd.edu ([132.239.1.53]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18T767-0007aa-00 for bug-gnu-emacs@prep.ai.mit.edu; Mon, 30 Dec 2002 16:05:19 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox1.ucsd.edu (8.12.3/8.12.3) with ESMTP id gBUL53Aj047472 for ; Mon, 30 Dec 2002 13:05:03 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 30 Dec 2002 22:05:03 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 30 Dec 2002 22:05:03 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: p508be54e.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 73 X-Orig-NNTP-Posting-Host: p508be54e.dip.t-dialin.net (80.139.229.78) X-Orig-X-Trace: fu-berlin.de 1041282302 9970631 80.139.229.78 (16 [146643]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-MailScanner: PASSED (v1.2.7 47238 gBUL53Aj047472 mailbox1.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4116 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4116 --=-=-= Hello everybody! Some MUAs create multiword e-mail headers like "In-Reply-To:" or "Reply-To:", while others do simply "In-reply-to:" and "Reply-to:". Rmail fails to fontify the header written in the former way. Other MUAs split headers in two or more lines like this: C ontent-Type: text/plain; charset=us-ascii Rmail fails to fontify all lines of such a header as well. Sendmail.el has the same bug. I would like to know if this also affects mh. Please consider following patches. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=rmail.diff.el Content-Description: patch --- rmail.orig.el Mon Dec 30 20:30:01 2002 +++ rmail.el Mon Dec 30 21:44:00 2002 @@ -549,9 +549,9 @@ (cite-prefix "A-Za-z") (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) (list '("^\\(From\\|Sender\\|Resent-[Ff]rom\\):" . font-lock-function-name-face) - '("^Reply-To:.*$" . font-lock-function-name-face) + '("^Reply-[Tt]o:.*$" . font-lock-function-name-face) '("^Subject:" . font-lock-comment-face) - '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" + '("^\\(To\\|Apparently-[Tt]o\\|Cc\\|Newsgroups\\):" . font-lock-keyword-face) ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. `(,cite-chars @@ -562,7 +562,7 @@ (beginning-of-line) (end-of-line) (2 font-lock-constant-face nil t) (4 font-lock-comment-face nil t))) - '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" + '("^\\(X-[A-Za-z0-9-]+\\|In-[Rr]eply-[Tt]o\\|Date\\):.*\\(\n[ \t]+.*\\)*$" . font-lock-string-face)))) "Additional expressions to highlight in Rmail mode.") --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=sendmail.diff.el Content-Description: patch --- sendmail.orig.el Mon Dec 30 20:30:08 2002 +++ sendmail.el Mon Dec 30 20:53:32 2002 @@ -376,7 +376,7 @@ (beginning-of-line) (end-of-line) (2 font-lock-constant-face nil t) (4 font-lock-comment-face nil t))) - '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*" + '("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*\\(\n[ \t]+.*\\)*$" . font-lock-string-face)))) "Additional expressions to highlight in Mail mode.") --=-=-= -- Alexander Pohoyda --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --=-=-=--