mhpgp, mhsign ------------- This software (shell scripts) written by Neil Rickert. It is placed in the public domain. You are free to use it and modify it to suit your needs. The scripts are adjusted to mmh by markus schnalke . They work a bit different today. The following excrept of the README and CHANGES files of the Neil's distribution is preserved for documentation. These are scripts for using with MH or nmh. The two scripts are tuned for the use of gnupg. It is not too hard to adapt to pgp2, pgp5 or pgp6.5. But why bother, since gnupg has clearly become the way to go for unix. Use: mhpgp ## to verify signature or decrypt current message. edit mhsign [-e] ## to sign [encrypt] at the whatnow prompt. See the man page for mhsign on creating a file "pgpkeys" in your MH directory or GNUPGHOME directory. Change log for mhsign: RCS file: RCS/mhsign,v Working file: mhsign head: 1.1 branch: 1.1.0 locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: Program to sign [encrypt] a message from whatnow prompt. ---------------------------- revision 1.1 date: 2003/06/14 18:38:14; author: rickert; state: Exp; branches: 1.1.0; Initial revision ---------------------------- revision 1.1.0.9 date: 2007/05/30 14:48:40; author: rickert; state: Exp; lines: +14 -9 Make sure that an MD5 hash is used with "-R" when signing. ---------------------------- revision 1.1.0.8 date: 2007/01/21 04:18:04; author: rickert; state: Exp; lines: +2 -2 Fix unmatched quote ---------------------------- revision 1.1.0.7 date: 2004/06/13 20:14:52; author: rickert; state: Exp; lines: +3 -3 Make sure that gnupg-1.3.6 uses the correct digest in pgp2 compatibility mode ---------------------------- revision 1.1.0.6 date: 2004/05/23 00:49:43; author: rickert; state: Exp; lines: +6 -6 Use "--always-trust", and ignore any "encrypt-to" in options file ---------------------------- revision 1.1.0.5 date: 2004/02/25 04:03:44; author: rickert; state: Exp; lines: +12 -7 When using -b with mime signature, turn off textmode and include the trailing blanks in the signed data. There is no point in using -b unless the trailing blanks are significant, in which case they should be protected by the signature. ---------------------------- revision 1.1.0.4 date: 2003/09/13 19:56:53; author: rickert; state: Exp; lines: +10 -6 Skip comment lines in '.pgpkeys'. Allow preferred keys to come from environment Use case insensitive search (grep -i) for .pgpkeys lookup of addresses. ---------------------------- revision 1.1.0.3 date: 2003/07/19 14:30:32; author: rickert; state: Exp; lines: +20 -3 Put personal keys in ".pgpkeys" database, so that script does not need to be personalized. ---------------------------- revision 1.1.0.2 date: 2003/07/18 23:26:41; author: rickert; state: Exp; lines: +17 -13 Force pgp/mime format if the message is already multipart mime. ---------------------------- revision 1.1.0.1 date: 2003/06/22 00:48:09; author: rickert; state: Exp; lines: +8 -2 Check in $GNUPGHOME for .pgpkeys . This allows a per-keyring list ============================================================================= Change log for mhpgp: RCS file: RCS/mhpgp,v Working file: mhpgp head: 1.1 branch: 1.1.0 locks: strict access list: symbolic names: keyword substitution: kv total revisions: 8; selected revisions: 8 description: Script for pgp verify/decrypt of mh messages (uses gnupg) ---------------------------- revision 1.1 date: 2003/07/19 16:50:32; author: rickert; state: Exp; branches: 1.1.0; Initial revision ---------------------------- revision 1.1.0.7 date: 2005/11/29 06:25:05; author: rickert; state: Exp; lines: +3 -1 If a message does not end in "\n" after decryption, then add "\n". ---------------------------- revision 1.1.0.6 date: 2005/07/13 01:00:10; author: rickert; state: Exp; lines: +2 -2 Fix mishandling of boundary=string; ---------------------------- revision 1.1.0.5 date: 2004/09/05 14:49:59; author: rickert; state: Exp; lines: +2 -2 Fix line endings when building a decrypted message (-w flag), the encrypted text might use CRLF. ---------------------------- revision 1.1.0.4 date: 2004/02/22 17:14:02; author: rickert; state: Exp; lines: +27 -10 Add "-b" option to strip blanks on pgpmime signature Use "getopts" for checking options. ---------------------------- revision 1.1.0.3 date: 2003/09/09 04:29:11; author: rickert; state: Exp; lines: +3 -2 Don't use exec, as that skips the trap and temp files are not deleted ---------------------------- revision 1.1.0.2 date: 2003/07/26 00:06:40; author: rickert; state: Exp; lines: +33 -11 Drop "-o outfile". Add "-w" to write back as a message to current folder. This allows easier examination of mime components that might be in the encrypted portion. ---------------------------- revision 1.1.0.1 date: 2003/07/19 16:57:16; author: rickert; state: Exp; lines: +4 -7 Clean up script, for more general usefulness =============================================================================