about summary refs log tree commit homepage
path: root/t/imapd.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-16 07:05:06 +0000
committerEric Wong <e@yhbt.net>2020-06-16 21:41:59 +0000
commit9c2bac94376c5029d258fed1ad3bf8c6b2270019 (patch)
tree1890027edfd65922ab33d34d8d62c9b515ddcd6a /t/imapd.t
parentbdee1f6bfaa0017877e5d5284c2d5e41f67e847a (diff)
downloadpublic-inbox-9c2bac94376c5029d258fed1ad3bf8c6b2270019.tar.gz
I accidentally dropped "TEXT" handling while porting
the IMAP search query parser to Parse::RecDescent.
This reinstates it and adds a test to prevent future
regression, and the additional test fixes a counting
error for non-Xapian-enabled systems.
Diffstat (limited to 't/imapd.t')
-rw-r--r--t/imapd.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/imapd.t b/t/imapd.t
index 4e2c8931..f9d93448 100644
--- a/t/imapd.t
+++ b/t/imapd.t
@@ -398,6 +398,8 @@ SKIP: {
         is(scalar(@$x), 1, 'MSN SEARCH on Subject works after rm');
         $x = $mic->message_string($x->[0]);
         is($x, $ret->{2}->{RFC822}, 'message 2 unchanged');
+        $x = $mic->search(qw(text embedded));
+        is(scalar(@$x), 1, 'MSN SEARCH on TEXT works after rm');
 }
 
 # FIXME? no EXPUNGE response, yet