Re: [Gaudenz Steinlin] Bug#810784: should match email adress case insensitive when sending encrypted mail

Subject: Re: [Gaudenz Steinlin] Bug#810784: should match email adress case insensitive when sending encrypted mail

Date: Mon, 08 Feb 2016 21:44:13 +0000

To: Daniel Kahn Gillmor, David Bremner, Gaudenz Steinlin, notmuch@notmuchmail.org, 810784@bugs.debian.org

Cc:

From: David Edmondson


On Fri, Jan 15 2016, Daniel Kahn Gillmor wrote:
> So where is the case-insensitive lookup happening?  Is this a bug in
> mml-mode, or in notmuch-emacs?

It's caused by behaviour in mml2015.el (hence upstream).

`mml2015-epg-check-user-id' uses `equal' to compare the recipient from
the composition buffer with the addresses from the matching key.

The simplest way to get the desired behaviour would be to `downcase'
both strings before comparing.

Thread: