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 command line
23 is normally invoked automatically by
25 When used directly, the source file, typically an MH draft file,
26 is replaced by the signed or encrypted message.
27 To permit recovery from mistakes,
28 a backup copy of the original file is saved, under the same name
29 with `.orig' appended.
31 The following options are recognized:
34 Encrypt to recipients, in addition to signing.
35 The message will also be encrypted to the signing key.
38 Use the PGP/MIME standard for signing and encrypting.
39 This is automatic if the message is already a multipart MIME message.
40 Otherwise the default is to sign/encrypt in the old-fashioned
41 non-MIME manner, for compatibility with older software.
43 When a message is signed but not encrypted, using the PGP/MIME
44 formatting, any line beginning with ``From '' will be indented, and any
45 trailing spaces will be removed from lines in the message body.
46 This is to ensure maximum compatibility.
47 Where trailing blanks are important (sending patches, for example),
48 it would be wise to use quoted-printable or other MIME encoding
51 The signing key is automatically determinded by gnupg,
52 unless the the profile entry
55 The environment variable
57 has highest precedence and can be used to overrule the key uid temporarily.
59 For encryption, the public keys of the recipients are taken from
61 To handle exceptions, e.g. recipient addresses that do not
62 match the key uid in the keyring, a file named
65 It should be located either in the gnupg directory (normally $HOME/.gnupg)
66 or in the mmh directory (normally $HOME/.mmh).
67 If both files exist, the one in the gnupg directory takes precedence.
75 0x88888888 john@nowhere.example.org
76 e5fda812 meillo@marmaro.de
83 .ta \w'%etcdir%/ExtraBigFileName 'u
84 ^$HOME/.gnupg/pgpkeys~^Pubkey exceptions for encrypting
85 ^$HOME/.mmh/pgpkeys~^... alternative location
88 .SH "PROFILE COMPONENTS"
92 .ta \w'ExtraBigProfileName 'u
93 ^Pgpkey:~^To determine the user's signing key
97 whom(1), send(1), mhpgp(1), gpg(1)