I have been looking into the mailing list software sympa and one of its features is that when you send an S/MIME mail encrypted to the list, it will re-encrypt for each recipient. The problem is that the mail shows as being from me and to the list, so S/MIME was unable to find a key to use to decrypt it. I have patched smime.c:smime_getkeys so it checks if there is a key that matches the From: and tries to use that. I can now read encrypted emails that are sent to me by sympa.
Omen -- Acid absorbs 47 times it's weight in excess Reality.
--- PATCHES~ Tue Nov 6 19:59:33 2001 +++ PATCHES Tue Nov 6 19:59:42 2001 @@ -1,0 +1 @@ +patch-1.5.1.ow.smime_from.1 Index: smime.c =================================================================== RCS file: /home/roessler/cvs/mutt/smime.c,v retrieving revision 3.23 diff -u -d -b -B -U8 -r3.23 smime.c --- smime.c 1 May 2002 23:21:10 -0000 3.23 +++ smime.c 24 Jun 2002 21:21:08 -0000 @@ -781,16 +781,22 @@ for (t = env->to; !found && t; t = t->next) if (mutt_addr_is_user (t)) { found = 1; _smime_getkeys (t->mailbox); } for (t = env->cc; !found && t; t = t->next) + if (mutt_addr_is_user (t)) + { + found = 1; + _smime_getkeys (t->mailbox); + } + for (t = env->from; !found && t; t = t->next) if (mutt_addr_is_user (t)) { found = 1; _smime_getkeys (t->mailbox); } if (!found && (t = mutt_default_from())) { _smime_getkeys (t->mailbox);