How to interpret a search with "to" and "*"

Subject: How to interpret a search with "to" and "*"

Date: Tue, 21 Jan 2025 10:16:29 -0500

To: notmuch@notmuchmail.org

Cc:

From: Renaud Bussières


Hello,

I've notice that if I do:

notmuch search 'to:address1@domain.com'

Then:

notmuch search 'to:*@domain.com'

I won't see the same results.

I though that the '*' in the second case would simply mean "anything ending with '@domain.com' in the 'to:' field", so results from the first case would be included in the second one. But apparently not.

I checked in the notmuch-search-terms man page, and it seems like searches with the 'to:' field operator do not accept regexp. Is that why the '*' doesn't work as expected?

While writing this email, I did some more testing, and I found that I get the expected results if I do 'notmuch search to:@domain.com', without a '*'. Then, my question is: how would you explain the results of 'to:*@domain.com'?

Thanks
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: