> I just discovered another problem: If the secret key is not available > (because it's on a removable media and the media is not mounted), the > mail is sent anyway. While this is just a bit annoying for signed mail > it definitely should not happen for encrypted mails. Current sup > corectly fails in this case. I have replicated this (by turning off gpg agent) but I'm confused as to why this is happening. If I try the same steps in irb I get an exception, and this should be caught and dealt with in the same way as current sup does. I guess I'll have to keep trying to replicate more and more of the path way through ... sigh. Once I have worked out the proper logic I can then add some extra checks for ensuring that gpg agent is running and that sup knows where to find it. I could even have sup ask you for your gpg passphrase with gpgme. There might be some security issues with having ruby ask you for your passphrase I guess, but I don't think it would be worse than gpg agent. gpg agent doesn't seem to have the suid bit set, though maybe as a C program it can be more rigorous about overwriting your passphrase in memory. I could always implement it as a hook with gpg agent as the default. > It would also be nice to have different colors for different trust > levels. So you don't have to expand the extra information to see if a > valid signature is trusted or not. Is this already possible with the > current hook? That requires code changes, but I've done that and attached a patch (intended to go on top of the other 4 patches). Now untrusted signatures have a blue background. (Trusted signatures have a default background - black normally, and bad signatures have a red background). All signatures have yellow text. I'm quite open to a different colour scheme being chosen if someone thinks something else would be clearer. Hamish Downer