Re: [bug?][notmuch-emacs] X11: renders Headers with face attributes

Subject: Re: [bug?][notmuch-emacs] X11: renders Headers with face attributes

Date: Mon, 25 Mar 2019 09:54:02 -0300

To: Gregor Zattler,


From: David Bremner

Gregor Zattler <> writes:

> Is this a bug?  Should untrusted senders be allowed to influence
> how headers are displayed?  I don't think so.  For me this case
> should be handled as a homograph attack
> (

I'm not sure about the threat to the user here, but I agree that it
might make sense to normalize the subject at indexing time. 

> I do know there is character folding for searches but emacs would
> need to use the reverse for displaying characters and only
> characters which deviate in a way that is recognized as a font
> attribute.

I'm guessing this would be better handled at the notmuch CLI / library
level, where we have access to utf8 conversion facilities e.g. from
glib. It turns out that these kind of problems (related to locales) are
harder than one might expect.
notmuch mailing list