Gnus development mailing list
 help / color / mirror / Atom feed
From: "James H. Cloos Jr." <cloos@jhcloos.com>
Subject: Mime PGP for pgnus
Date: 03 Mar 1999 13:54:01 -0600	[thread overview]
Message-ID: <m3d82q2vty.fsf@k6.jhcloos.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This was originally written as an aside on another post, but I think
it deserves its own thread.

Right now, in order to sign a MIME message with, eg mailcrypt, one
must first run mml-to-mime on the buffer.  

The arguably proper approach is of course to use MML to indicate that
the enclosed part should be signed a/o encrypted.  A message body
might look like (leaving out the octothorpes so it gets posted as is):

<multipart type=signed>
<part type=text/plain>
This is the message
<part type=application/pgp-signature elisp=mc-gen-detatched-sig></part>
</multipart>

where mc-gen-detatched-sig would be a function for mml-generate-mime
to call when processing that part.  Perhaps it should be in the
multipart/signed tag rather than the application/pgp-signature tag,
though.

Or, a new tag could be defined:

<mc-sign>
This is the message
</mc-sign>

In this case, mml would need to have support for other packages to
register tags and the functions that implement them.

Any thoughts on which syntax is better from the UI perspective?  In
either case, there would be mc-sign and mc-encrypt equivilents which
insert the necessary mml, so the only question is how things should
look in the buffer....

P.S.  I'd have used mml-quote-region on the mml examples so that the
      octothorpes could be left in, but then the signature wouldn't
      be valid....  Another example of why this is needed.

- -JimC
- -- 
James H. Cloos, Jr.  <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6 
<cloos@jhcloos.com>     E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE23ZNWmXqfF+19rqYRAih3AJ9+LZkRoq8vFLNv0RPjE8nRZe0csACfeuQF
8YPli+TKUdMA7R8+psFT/2s=
=bGbk
-----END PGP SIGNATURE-----


             reply	other threads:[~1999-03-03 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03 19:54 James H. Cloos Jr. [this message]
1999-03-04  3:18 ` Anil B. Somayaji
1999-03-04 21:52   ` James H. Cloos Jr.
1999-03-05 19:52 ` Lars Magne Ingebrigtsen

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=m3d82q2vty.fsf@k6.jhcloos.com \
    --to=cloos@jhcloos.com \
    /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).