See rfc 2015 for how to have encrypted/signed MIME parts.
You might want to take a look at the mutt MUA. It works with PGP to
produce signed and/or encrypted messages.
For example this message is signed, and you can take a look at the raw
headers to get some idea of how things are done.
On Wed, Jul 21, 1999 at 03:26:38PM -0300,
Juan Carlos Castro y Castro <[EMAIL PROTECTED]> wrote:
> What's the correct MIME type and file suffix for encrypted PGP text, i
> mean, the ones which begin with, "-----BEGIN PGP MESSAGE-----"? I'm
> toying with the idea of dealing with encrypting messages directly
> through qmail. Don't ask too much. It's a cockamamie idea still in its
> embryonary stages.
Content-Description: Card for Juan Carlos Castro y Castro
PGP signature