From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62893 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Need to MIME-process a message after decrypting Date: Tue, 18 Apr 2006 10:49:15 +0200 Message-ID: <87lku3tgj8.fsf@latte.josefsson.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1145350193 16194 80.91.229.2 (18 Apr 2006 08:49:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Apr 2006 08:49:53 +0000 (UTC) Original-X-From: ding-owner+m11420@lists.math.uh.edu Tue Apr 18 10:49:51 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVlu2-0005oP-2T for ding-account@gmane.org; Tue, 18 Apr 2006 10:49:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FVltw-0002vj-00; Tue, 18 Apr 2006 03:49:36 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FVltl-0002ve-00 for ding@lists.math.uh.edu; Tue, 18 Apr 2006 03:49:25 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FVltj-0003tV-5x for ding@lists.math.uh.edu; Tue, 18 Apr 2006 03:49:25 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FVlti-0007DB-00 for ; Tue, 18 Apr 2006 10:49:22 +0200 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k3I8nF4X028308 for ; Tue, 18 Apr 2006 10:49:16 +0200 Original-To: ding@gnus.org OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060418:ding@gnus.org::0CG4WG/kP4EOBMNs:Kxn3 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 14 Apr 2006 09:10:26 +0200") User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id k3I8nF4X028308 X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62893 Archived-At: Lars Magne Ingebrigtsen writes: > kai@emptydomain.de (Kai Gro=DFjohann) writes: > >> I have access to a mail server that supports "autopgp". This is a >> feature where you put the string "autopgp" into the subject line and >> the mail server automatically encrypts the mail to all recipients. >> (This only works for recipients on the same server, obviously.) >> >> An autopgp message arrives as a somewhat strange format. Here is what >> I get in the article buffer after entering my passphrase: >> >> From: kai.grossjohann@dieneueepoche.com (Kai Gro=DFjohann) >> Subject: test autopgp >> To: Kai Gro=DFjohann >> Date: Fri, 22 Jul 2005 14:02:28 +0200 >> >> Content-Type: text/plain; charset=3Diso-8859-15 >> Content-Transfer-Encoding: quoted-printable >> >> Sch=3DF6ne Umlaute. >> >> As you can see, the encrypted bit contains MIME headers. How do I get >> Gnus to look for and interpret these headers prior to displaying the >> message? > > This should work automatically, I'd have thought. (Although it's been > a long while since I read the PGP code.) Having the MIME headers as part of the rfc822 mailbox isn't supported, and isn't standardized. Theoretically, it may be dangerous to do as well. Consider: ,---- | From: foo@bar.com | Content-type: text/plain |=20 | Context-Type: application/shell-script |=20 | rm -rf / `---- Should rendering that message display: ,---- | Context-Type: application/shell-script |=20 | rm -rf / `---- or a MIME button for an application/shell-script? > But it's difficult to debug without a real example of some kind... Yup.