2 ######################################################
4 # Test mhsign (correct alias expansion with -enc)
6 ######################################################
13 cat >"$MH_TEST_DIR/.mmh/aliases" <<!
15 a2: unknownperson@example.org
16 a3: Unknown Person <unknownperson>
17 a4: Unknown Person <unknownperson@example.org>
18 a5: "Unknown Person" <unknownperson@example.org>
19 a6: (Unknown) <unknownperson@example.org> (Person)
20 a7: Unknown <unknownperson@example.org>, unknownperson@example.org
22 cat >>"$MH_TEST_DIR/.mmh/profile" <<!
27 # override gpg with our own function for defined output
31 ' >"$MH_TEST_DIR/bin/gpg"
32 chmod +x "$MH_TEST_DIR/bin/gpg"
33 export MMHPGPKEY=0x12345678
38 draft=`mhpath +drafts b`
40 To: a1, a2, a3, a4, a5
42 Subject: mhsign -enc test
47 runandcheck "whom -noali $draft" <<!
57 runandcheck "whom -ali $draft" <<!
59 unknownperson@example.org
60 Unknown Person <unknownperson>
61 Unknown Person <unknownperson@example.org>
62 "Unknown Person" <unknownperson@example.org>
63 (Unknown) <unknownperson@example.org> (Person)
64 Unknown <unknownperson@example.org>
65 unknownperson@example.org
68 runandcheck "mhsign -enc $draft" <<!
69 Could not find key for <unknownperson@`hostname -f`>
70 Could not find key for <unknownperson@example.org>
71 Could not find key for <unknownperson@`hostname -f`>
72 Could not find key for <unknownperson@example.org>
73 Could not find key for <unknownperson@example.org>
74 Could not find key for <unknownperson@example.org>
75 Could not find key for <unknownperson@example.org>
76 Could not find key for <unknownperson@example.org>