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.
41 When a message is signed but not encrypted, using the PGP/MIME
42 formatting, any line beginning with ``From '' will be indented, and any
43 trailing spaces will be removed from lines in the message body.
44 This is to ensure maximum compatibility.
45 Where trailing blanks are important (sending patches, for example),
46 it would be wise to use quoted-printable or other MIME encoding
49 The signing key is automatically determinded by gnupg,
50 unless the the profile entry
53 The environment variable
55 has highest precedence and can be used to overrule the key uid temporarily.
57 For encryption, the public keys of the recipients are taken from
59 To handle exceptions, e.g. recipient addresses that do not
60 match the key uid in the keyring, a file named
63 It should be located either in the gnupg directory (normally $HOME/.gnupg)
64 or in the mmh directory (normally $HOME/.mmh).
65 If both files exist, the one in the gnupg directory takes precedence.
73 0x88888888 john@nowhere.example.org
74 e5fda812 meillo@marmaro.de
81 .ta \w'%etcdir%/ExtraBigFileName 'u
82 ^$HOME/.gnupg/pgpkeys~^Pubkey exceptions for encrypting
83 ^$HOME/.mmh/pgpkeys~^... alternative location
86 .SH "PROFILE COMPONENTS"
90 .ta \w'ExtraBigProfileName 'u
91 ^Pgpkey:~^To determine the user's signing key
95 whom(1), send(1), mhpgp(1), gpg(1), hostname(1)
104 The order of the command line arguments is relevant: Options must
105 come first, the file must be last.
109 to get the hostname if it isn't in the address, though
111 isn't specified by POSIX.