summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-07-06 14:13:57 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-07-06 14:13:57 +0200
commitd217d1cafea935b8a70d642ee62af041cbaee47e (patch)
tree3b359ba06ca4cd0ed1b9c11764962a08edb518c0 /tests
parent108d641920c7b7ebd53c5ed369d1566fe2cc4bcd (diff)
tests: Add test for searching by msgid.
Diffstat (limited to 'tests')
-rw-r--r--tests/xapian.scm6
1 files changed, 5 insertions, 1 deletions
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))))