From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65011 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Highlighting with GPG signed messages. Date: Thu, 02 Aug 2007 15:28:13 +0900 Organization: Emacsen advocacy group Message-ID: References: <87r6mn8hkf.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1186036181 29845 80.91.229.12 (2 Aug 2007 06:29:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2007 06:29:41 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13521@lists.math.uh.edu Thu Aug 02 08:29:34 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IGUBh-0005Oo-RP for ding-account@gmane.org; Thu, 02 Aug 2007 08:29:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IGUBW-0005cW-Hu; Thu, 02 Aug 2007 01:29:22 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IGUBT-0005c4-CN for ding@lists.math.uh.edu; Thu, 02 Aug 2007 01:29:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IGUBN-0008U0-Aa for ding@lists.math.uh.edu; Thu, 02 Aug 2007 01:29:19 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IGUBM-0005Ol-00 for ; Thu, 02 Aug 2007 08:29:12 +0200 Original-Received: from [66.225.201.151] (port=54329 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1IGUAe-0004tm-Aj for ding@gnus.org; Thu, 02 Aug 2007 01:28:30 -0500 X-Hashcash: 1:20:070802:ding@gnus.org::yXPVI+YfQpP7Gk8t:00000H2y X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:SN0a0W81OnzRERgcABi/gz3eiZ8= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65011 Archived-At: --=-=-= >>>>> Katsumi Yamaoka wrote: > How about this one? This causes an error with format=flowed messages. Oops. Please use the next one: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-art.el~ 2007-07-20 11:23:53 +0000 +++ gnus-art.el 2007-08-02 06:24:41 +0000 @@ -5451,10 +5451,21 @@ (save-excursion (save-restriction (narrow-to-region beg (point)) - (gnus-treat-article - nil id - (gnus-article-mime-total-parts) - (mm-handle-media-type handle))))))))) + (if (eq handle gnus-article-mime-handles) + ;; The format=flowed case. + (gnus-treat-article nil 1 1 (mm-handle-media-type handle)) + ;; Don't count signature parts that are never displayed. + ;; The part number should be re-calculated supposing this + ;; might be a message/rfc822 part. + (let (handles) + (dolist (part gnus-article-mime-handles) + (unless (or (stringp part) + (equal (car (mm-handle-type part)) + "application/pgp-signature")) + (push part handles))) + (gnus-treat-article + nil (length (memq handle handles)) (length handles) + (mm-handle-media-type handle))))))))))) (defun gnus-unbuttonized-mime-type-p (type) "Say whether TYPE is to be unbuttonized." --=-=-=--