sup-heliotrope / sup

A curses threads-with-tags style email client (mailing list: supmua@googlegroups.com)
http://sup-heliotrope.github.io
GNU General Public License v2.0
900 stars 97 forks source link

"Sign and encrypt" ignores account-specific key. Always signs with default one. #522

Open sequba opened 8 years ago

sequba commented 8 years ago

When I use option "sign and encrypt", my emails are signed with my default key instead of the one specified in config. Sign with no encryption works fine.

I managed to find the cause. Method encrypt expects symbol :signers instead of :signer in options hash. I got it working by adding the line options[:signers] = options[:signer] to my gpg-options hook.

I'm sure the solution requires only minor changes in code, but I'm not confident enough to do it myself.