wangp / bower

A curses terminal client for the Notmuch email system
Other
119 stars 11 forks source link

searching for key using email should be case insensitive #102

Closed craftyguy closed 2 years ago

craftyguy commented 2 years ago

I've noticed that if I have a GPG key for a recipient foo.bar@example.com, but happen to reply to a mail where their email includes caps, e.g. Foo.Bar@example.com, bower fails to find the gpg key. If I lower the casing manually, it works. I don't think the email spec cares about caps in the address (e.g. sending a mail to both emails above should end up in the exact same inbox), so maybe bower should do a case-insensitive search for a matching key?

wangp commented 2 years ago

That makes sense. Please test the gpg-key-ignore-case branch.

craftyguy commented 2 years ago

@wangp works great, thanks for the quick fix :)