From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Edmondson <dme@dme.org>,
Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
David Bremner <david@tethera.net>,
Gaudenz Steinlin <gaudenz@debian.org>,
notmuch@notmuchmail.org, 810784@bugs.debian.org
Subject: Re: [Gaudenz Steinlin] Bug#810784: should match email adress case insensitive when sending encrypted mail
Date: Wed, 10 Feb 2016 10:28:24 +0200 [thread overview]
Message-ID: <m2y4atm0k7.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <m21t8l6glk.fsf@dme.org>
On Tue, Feb 09 2016, David Edmondson <dme@dme.org> wrote:
> On Mon, Feb 08 2016, David Edmondson wrote:
>> On Mon, Feb 08 2016, David Edmondson wrote:
>>> 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.
>>
>> Reported as bug#22603 in emacs.
>
> Fixed in the emacs-25 branch.
We could perhaps add defadvice to **wiki** for those who want to
do global change in their emacs environment, something like:
(if (< emacs-major-version 25)
(defadvice mml2015-epg-check-user-id (around downcase activate)
(ad-set-arg 1 (downcase (ad-get-arg 1)))
(ad-set-arg 2 (downcase (ad-get-arg 2)))
ad-do-it))
totally untested -- also now that I finished that 'before might also work.
prev parent reply other threads:[~2016-02-10 8:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 16:44 [Gaudenz Steinlin] Bug#810784: should match email adress case insensitive when sending encrypted mail David Bremner
2016-01-15 18:47 ` Daniel Kahn Gillmor
2016-02-08 21:44 ` David Edmondson
2016-02-08 22:08 ` David Edmondson
2016-02-09 15:36 ` David Edmondson
2016-02-10 8:28 ` Tomi Ollila [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2y4atm0k7.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=810784@bugs.debian.org \
--cc=david@tethera.net \
--cc=dkg@fifthhorseman.net \
--cc=dme@dme.org \
--cc=gaudenz@debian.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).