2 ######################################################
4 # Test mhsign (correct alias expansion with -enc)
6 ######################################################
12 cat >"$MH_TEST_DIR/.mmh/aliases" <<!
14 a2: unknownperson@example.org
15 a3: Unknown Person <unknownperson>
16 a4: Unknown Person <unknownperson@example.org>
17 a5: "Unknown Person" <unknownperson@example.org>
18 a6: (Unknown) <unknownperson@example.org> (Person)
19 a7: Unknown <unknownperson@example.org>, unknownperson@example.org
21 cat >>"$MH_TEST_DIR/.mmh/profile" <<!
26 # override gpg with our own function for defined output
30 ' >"$MH_TEST_DIR/bin/gpg"
31 chmod +x "$MH_TEST_DIR/bin/gpg"
32 export MMHPGPKEY=0x12345678
37 draft=`mhpath +drafts b`
39 To: a1, a2, a3, a4, a5
41 Subject: mhsign -enc test
46 runandcheck "whom -noali $draft" <<!
56 runandcheck "whom -ali $draft" <<!
58 unknownperson@example.org
59 Unknown Person <unknownperson>
60 Unknown Person <unknownperson@example.org>
61 "Unknown Person" <unknownperson@example.org>
62 (Unknown) <unknownperson@example.org> (Person)
63 Unknown <unknownperson@example.org>
64 unknownperson@example.org
67 runandcheck "mhsign -enc $draft" <<!
68 Could not find key for <unknownperson@`mh_hostname`>
69 Could not find key for <unknownperson@example.org>
70 Could not find key for <unknownperson@`mh_hostname`>
71 Could not find key for <unknownperson@example.org>
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>