From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55254 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Buttonizing and decoding based on message part contents? Date: Wed, 17 Dec 2003 00:08:22 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071616284 19656 80.91.224.253 (16 Dec 2003 23:11:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 23:11:24 +0000 (UTC) Original-X-From: ding-owner+M3794@lists.math.uh.edu Wed Dec 17 00:11:21 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWOLZ-0003yo-00 for ; Wed, 17 Dec 2003 00:11:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AWOLE-0000n4-00; Tue, 16 Dec 2003 17:11:00 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AWOL5-0000mw-00 for ding@lists.math.uh.edu; Tue, 16 Dec 2003 17:10:52 -0600 Original-Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by justine.libertine.org (Postfix) with ESMTP id 1264B3A0044 for ; Tue, 16 Dec 2003 17:10:51 -0600 (CST) Original-Received: from [195.215.224.194] (0xc3d7e0c2.esnxr4.ras.tele.dk [195.215.224.194]) by pfepb.post.tele.dk (Postfix) with ESMTP id 069195EE1C3 for ; Wed, 17 Dec 2003 00:10:48 +0100 (CET) Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: (Lloyd Zusman's message of "Tue, 16 Dec 2003 13:33:04 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55254 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55254 Lloyd Zusman writes: > What I want to do is to look into each part and see if it contains a > block of text between the markers "-----BEGIN PGP MESSAGE-----" and > "-----END PGP MESSAGE-----", and if so, to either buttonize it or force > it to be decoded via pgg (or both). > > Is there some sort of hook mechanism that will allow me to install an > optional function to test each message part and as a result of this > test, to set its buttonizing or decoding attributes? No. `mm-uu-dissect' which is the function responsible for detecting this is only applied to single part text/plain. I think this feature has been requested several times (and ISTR previous discussions here). Look around line 4495 in gnus-art.el if you'd like to experiment with it. > Or perhaps is there another way to do this? Another possibility could be to do it as a part of article washing -- something like the removed `article-hide-pgp' from Gnus 5.9.