From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23794 Path: main.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME-PGP Date: 04 Jul 1999 21:20:39 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161464 3983 80.91.224.250 (21 Oct 2002 00:51:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:51:04 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA27285 for ; Sun, 4 Jul 1999 17:01:27 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB27375; Sun, 4 Jul 1999 14:25:39 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 04 Jul 1999 14:25:07 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA25212 for ; Sun, 4 Jul 1999 14:24:49 -0500 (CDT) Original-Received: from delos.stuttgart.netsurf.de (delos.stuttgart.netsurf.de [194.163.56.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA26281 for ; Sun, 4 Jul 1999 15:23:29 -0400 (EDT) Original-Received: by delos.stuttgart.netsurf.de (Smail3.2.0.103/delos.LF.net) via LF.net GmbH Internet Services via remoteip 194.163.56.20 via remotehost cygnus.stuttgart.netsurf.de with esmtp for mailhost.sclp.com id m110rrD-000S1TC; Sun, 4 Jul 1999 21:23:19 +0200 (MET DST) Original-Received: from deneb.cygnus.stuttgart.netsurf.de (deneb.cygnus.stuttgart.netsurf.de [192.168.0.1]) by cygnus.stuttgart.netsurf.de (8.8.7/8.8.7) with ESMTP id VAA00697 for ; Sun, 4 Jul 1999 21:24:07 +0200 Original-Received: (from fw@localhost) by deneb.cygnus.stuttgart.netsurf.de (8.9.3/8.9.3) id VAA01154; Sun, 4 Jul 1999 21:20:39 +0200 Original-To: ding@gnus.org User-Agent: Gnus/5.070089 (Pterodactyl Gnus v0.89) XEmacs/21.1 (20 Minutes to Nikko) Original-Lines: 35 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23794 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23794 Lars Magne Ingebrigtsen writes: > Do you mean that the decryption/verification hook should sweep the > message first, and then transform the message in some way? By > decoding stuff or verifying stuff, and then replacing that stuff with > the decoded/verified stuff? Hm. Well, sort of. Did you get the code I sent to you? I hoped it would clarify my approach (although it's an utter mess). I'd like to suggest the following solution: - encoding: provide a hook which allows to generate MIME multiparts based on the encoded version of the contained parts. This means that you can write (had to fake it a bit, so that Gnus groks it ;): | <# multipart type=signed> | This is a signed multipart. | <# part type="text/plain" filename="~/file2" | disposition=attachment description="signed attachment"> | <# /part> | <# /multipart> ...and Gnus will do the necessary work automatically when you send the message. - decoding: do all verification and decryption during the dissection phase (don't defer it until the article is actually displayed; an appropriate hook is required, of course). > Well, why not just quote the "\nFrom " lines before calling the > qp-encode function? It seems like a cleaner way to do this. Eh, I don't see how this could work. If a s/^From /From=20/ is done before qp-encode is called, wouldn't this result in `From=3D20'?