From d217d1cafea935b8a70d642ee62af041cbaee47e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 6 Jul 2022 14:13:57 +0200 Subject: tests: Add test for searching by msgid. --- tests/xapian.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/xapian.scm b/tests/xapian.scm index 4874ed2..73827b2 100644 --- a/tests/xapian.scm +++ b/tests/xapian.scm @@ -100,7 +100,11 @@ (search "submitter:\"Ricardo Wurmus\"" #:pagesize 2)) (test-equal "search: supports author prefix with email address" '("26095" "33299") - (search "author:ludo" #:pagesize 2))) + (search "author:ludo" #:pagesize 2)) + (test-equal "search: finds by message id" + '("33299") + (search "msgid:c78be403-0616-67a0-fd5a-e1196b6a14d1@example.com" + #:pagesize 2))) (lambda () (delete-file-recursively db-dir)))) -- cgit v1.2.3