From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: MIME-PGP (was: Re: I'm alive!)
Date: 03 Jul 1999 10:27:16 +0200 [thread overview]
Message-ID: <m3d7yauoij.fsf@quimbies.gnus.org> (raw)
In-Reply-To: Florian Weimer's message of "13 Jun 1999 14:48:05 +0200"
Florian Weimer <fw@cygnus.stuttgart.netsurf.de> writes:
> Content-Type: multipart/signed; boundary=YD3LsXFS42OYHhNZ; micalg=pgp-md5;
> protocol="application/pgp-signature"
[...]
> The `micalg' and `protocol' parameters in the primary `Content-Type'
> header are vital, but it seems as if they aren't passed to functions
> listed in `gnus-mime-multipart-functions'.
All the parameters in the Content-Type header are contained in the
MIME handle.
> In addition, everything between the first and second
> `--YD3LsXFS42OYHhNZ' boundary is covered by the PGP signature,
> including the MIME headers and boundaries, which get lost during the
> translation from raw message text to MIME handles.
Right.
> Finally, in the `multipart/encrypted' case, as shown below, the encrypted
> part contains data which has to be put through the MIME translation
> process as well. This has not happend during the first translation,
> because obviously, the data contained in the part wasn't readable then.
Yup.
> IMHO, an appropiate hook into `mm-dissect-buffer' would allow
> to do all these things in a relatively straightforward manner.
> `gnus-mime-multipart-functions' could be used to put information gathered
> during the MIME translation process (signer, valid/invalid signature,
> beginning/end of signed data) into the *Article* buffer in a nicely
> formatted form.
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.
A different way of doing this would be doing it like I said :-), but
add the "raw" part to the MIME handles as well. Then it could verify
the headers as well. And the decryption multipart handle is free to
MIME-decode the handles it gets, and then let Gnus handle the decoded
parts (recursively).
> I didn't want to suggest that this should be made the default behaviour.
> But what if `quoted-printable-encode-region' checked a global variable
> and encodes "\nFrom " if it is non-nil -- this wouldn't change anything
> for regular messages?
Well, why not just quote the "\nFrom " lines before calling the
qp-encode function? It seems like a cleaner way to do this.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~1999-07-03 8:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-11 19:43 I'm alive! Lars Magne Ingebrigtsen
1999-06-11 20:44 ` Karl Kleinpaste
1999-06-11 21:17 ` Wes Hardaker
1999-06-11 23:29 ` Harry Putnam
[not found] ` <m3aeu5ju31.fsf@deneb.cygnus.stuttgart.netsurf.de>
1999-06-13 8:16 ` Lars Magne Ingebrigtsen
1999-06-13 12:48 ` MIME-PGP (was: Re: I'm alive!) Florian Weimer
1999-07-03 8:27 ` Lars Magne Ingebrigtsen [this message]
1999-07-04 19:20 ` MIME-PGP Florian Weimer
1999-07-06 3:34 ` MIME-PGP Lars Magne Ingebrigtsen
1999-07-06 9:24 ` MIME-PGP Florian Weimer
1999-07-09 16:51 ` MIME-PGP Lars Magne Ingebrigtsen
1999-07-10 18:14 ` MIME-PGP Florian Weimer
1999-08-27 17:08 ` MIME-PGP Lars Magne Ingebrigtsen
1999-07-09 10:37 ` MIME-PGP Toby Speight
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d7yauoij.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).