Re: [PATCH] test: add known broken test for message-id with embedded spaces.

Subject: Re: [PATCH] test: add known broken test for message-id with embedded spaces.

Date: Sun, 09 Jul 2023 12:12:53 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


David Bremner <david@tethera.net> writes:

> According to my reading of RFC5322, there is an obsolete syntax for
> Message-Id which permits folding whitespace (i.e. to be removed /
> ignored by parsers). In [1] Paul Wise observed that notmuch removed
> whitespace on indexing, but does not do any corresponding
> normalization of queries. Mark the latter as a bug by adding a failing
> test.

Applied to master. I'm curious how many such message ids there are in
the wild. It is not particularly hard to fix this in the query
parser(s), but it is a bit tedious (e.g. a new field processor would
need to be added for the id prefix in the infix query processor).
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: