4 .TH MHSIGN %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 mhsign \- sign or encrypt a message with gnupg
19 is a script to simplify signing and encrypting, using gnupg.
22 is normally invoked automatically by
24 When used directly, the source file, typically an MH draft file,
25 is replaced by the signed or encrypted message.
26 To permit recovery from mistakes,
27 a backup copy of the original file is saved, under the same name
28 with `.orig' appended.
30 The following options are recognized:
33 Encrypt to recipients, in addition to signing.
34 The message will also be encrypted to the signing key.
37 Use the PGP/MIME standard for signing and encrypting.
38 This is automatic if the message is already a multipart MIME message.
39 Otherwise the default is to sign/encrypt in the old-fashioned
40 non-MIME manner, for compatibility with older software.
42 When a message is signed but not encrypted, using the PGP/MIME
43 formatting, any line beginning with ``From '' will be indented, and any
44 trailing spaces will be removed from lines in the message body.
45 This is to ensure maximum compatibility.
46 Where trailing blanks are important (sending patches, for example),
47 it would be wise to use quoted-printable or other MIME encoding
50 The signing key is automatically determinded by gnupg,
51 unless the the profile entry
54 The environment variable
56 has highest precedence and can be used to overrule the key uid temporarily.
58 For encryption, the public keys of the recipients are taken from
60 To handle exceptions, e.g. recipient addresses that do not
61 match the key uid in the keyring, a file named
64 It should be located either in the gnupg directory (normally $HOME/.gnupg)
65 or in the mmh directory (normally $HOME/.mmh).
66 If both files exist, the one in the gnupg directory takes precedence.
74 0x88888888 john@nowhere.example.org
75 e5fda812 meillo@marmaro.de
82 .ta \w'%etcdir%/ExtraBigFileName 'u
83 ^$HOME/.gnupg/pgpkeys~^Pubkey exceptions for encrypting
84 ^$HOME/.mmh/pgpkeys~^... alternative location
87 .SH "PROFILE COMPONENTS"
91 .ta \w'ExtraBigProfileName 'u
92 ^Pgpkey:~^To determine the user's signing key
96 whom(1), send(1), mhpgp(1), gpg(1)