From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55247 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Buttonizing and decoding based on message part contents? Date: Tue, 16 Dec 2003 13:33:04 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071601771 31020 80.91.224.253 (16 Dec 2003 19:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 19:09:31 +0000 (UTC) Original-X-From: ding-owner+M3787@lists.math.uh.edu Tue Dec 16 20:09:27 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 1AWKZT-0004ry-00 for ; Tue, 16 Dec 2003 20:09:27 +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 1AWKYG-00006L-00; Tue, 16 Dec 2003 13:08:12 -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 1AWKY7-00006D-00 for ding@lists.math.uh.edu; Tue, 16 Dec 2003 13:08:03 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id B2BC63A0026 for ; Tue, 16 Dec 2003 13:08:02 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AWK2n-0005uv-00 for ; Tue, 16 Dec 2003 19:35:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWK2m-0005un-00 for ; Tue, 16 Dec 2003 19:35:40 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AWK2m-0006oh-00 for ; Tue, 16 Dec 2003 19:35:40 +0100 Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:cz4Wr4ZHLQ2zqN6rn4vMm0HxTok= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55247 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55247 I know that I can use `mm-content-transfer-encoding-defaults', `mm-inline-override-types', and `mm-discouraged-alternatives' to control how various message parts are buttonized and decoded. I'm wondering if it's also possible to go one step further: to look inside of the message part itself and use the contents to control these things. 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? If so, that would make it easy for me to implement this functionality. Or perhaps is there another way to do this? Thanks in advance. -- Lloyd Zusman ljz@asfast.com