From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>,
David Bremner <david@tethera.net>,
notmuch@notmuchmail.org
Subject: [PATCH] test: add known broken test for indexing RFC822 group names
Date: Tue, 23 Mar 2021 21:24:05 -0300 [thread overview]
Message-ID: <20210324002405.898574-1-david@tethera.net> (raw)
In-Reply-To: <m2mtut63k3.fsf@guru.guru-group.fi>
Austin Clements diagnosed this indexing problem in [1].
[1]: id:20130711215207.GR2214@mit.edu
---
Hi Tomi;
Here's a test that demonstrates the bug / missing feature.
test/T050-new.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/T050-new.sh b/test/T050-new.sh
index 2985e24c..109ca4ef 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -339,6 +339,13 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1"
notmuch config set new.tags $OLDCONFIG
+test_begin_subtest "RFC822 group names are indexed"
+test_subtest_known_broken
+generate_message [to]="undisclosed-recipients:"
+NOTMUCH_NEW > OUTPUT
+output=$(notmuch search --output=messages to:undisclosed-recipients)
+test_expect_equal "${output}" "${gen_msg_id}"
+
test_begin_subtest "Long directory names don't cause rescan"
test_subtest_known_broken
printf -v name 'z%.0s' {1..234}
--
2.30.2
next prev parent reply other threads:[~2021-03-24 0:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-23 13:11 Query emails sent to undisclosed-recipients Firmin Martin
2021-03-23 18:33 ` Tomi Ollila
2021-03-23 19:26 ` David Bremner
2021-03-23 20:03 ` Tomi Ollila
2021-03-24 0:24 ` David Bremner [this message]
2021-03-24 0:37 ` [PATCH] test: add known broken test for indexing RFC822 group names David Bremner
2021-06-07 23:33 ` David Bremner
2021-04-15 2:46 ` Query emails sent to undisclosed-recipients NeilBrown
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=20210324002405.898574-1-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/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).