From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55272 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: Buttonizing and decoding based on message part contents? Date: Thu, 18 Dec 2003 12:30:06 -0500 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=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1071768662 13660 80.91.224.253 (18 Dec 2003 17:31:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2003 17:31:02 +0000 (UTC) Original-X-From: ding-owner+M3812@lists.math.uh.edu Thu Dec 18 18:30:59 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 1AX1zG-0005ph-00 for ; Thu, 18 Dec 2003 18:30:58 +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 1AX1z5-0005sR-00; Thu, 18 Dec 2003 11:30:47 -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 1AX1yw-0005sJ-00 for ding@lists.math.uh.edu; Thu, 18 Dec 2003 11:30:38 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id BFD6B3A0039 for ; Thu, 18 Dec 2003 11:30:36 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AX1yt-0000nr-00 for ; Thu, 18 Dec 2003 18:30:35 +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 1AX1yq-0000nj-00 for ; Thu, 18 Dec 2003 18:30:32 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AX1yq-0003VH-00 for ; Thu, 18 Dec 2003 18:30:32 +0100 Original-Lines: 53 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:XFZa+2YBkL12RffJ9oMQlej/avc= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55272 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55272 Jesper Harder writes: > Lloyd Zusman writes: > >> Jesper Harder writes: >> >>> [ ... ] >>> >>> Well, I don't actually know if `article-hide-pgp' did anything >>> useful for multiparts. > > It does, at least for text/plain parts. Try the attached patch. Thank you. I'll give it a try. >> If there was a hook function that gets called for each message part >> (and which allows me to set the display and buttonizing status for >> each part), I could then write my own, personal code to handle this >> case, and at the same time avoid polluting the Gnus code base with >> this anachronism. > > The bad thing isn't pollution, but that the approach > `article-hide-pgp' uses doesn't really solve the problems. It just > hides them, viz. > > =B7 It doesn't allow you to actually verify the signatures. > =B7 It doesn't work for encrypted parts. > =B7 It doesn't necessarily (I haven't tested) solve the related problem > of format=3Dflowed & old-style PGP. OK. That makes sense. In addition to trying the patch that you have enclosed, I also still want to try the "hook" idea that I mentioned above. I'll see if I can do this. A question: if I write a washing-type function that traverses the MIME structure of a message and calls a hook for each part, what should I do within this hook in order to cause each of the following outcomes? ... 1. Buttonize the message part. 2. Override the part's MIME type with my own setting. This will allow a text/plain or application/octet-stream part that contains delimiters such as "-----BEGIN PGP MESSAGE-----" to be handled via the code that already exists for application/pgp-encrypted parts. Thanks. --=20 Lloyd Zusman ljz@asfast.com