about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-08-06 21:43:46 +0000
committerEric Wong <e@yhbt.net>2020-08-07 23:44:40 +0000
commit9968a955fd7881155bd4938116b98d2ffba192e6 (patch)
tree1e13b329a5d6fbda23e414f30667d6c7823f1cbd /t
parent607b26c426a89c843727a146ee66514efba3c99f (diff)
downloadpublic-inbox-9968a955fd7881155bd4938116b98d2ffba192e6.tar.gz
This is specified in RFC 3501 but was accidentally omitted :x
I probably got it confused with TEXT, so add a comment about
TEXT being "everything" in the message.
Diffstat (limited to 't')
-rw-r--r--t/imap_searchqp.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/imap_searchqp.t b/t/imap_searchqp.t
index d62f314a..adf7b205 100644
--- a/t/imap_searchqp.t
+++ b/t/imap_searchqp.t
@@ -14,6 +14,9 @@ my $imap = bless {}, 'PublicInbox::IMAP';
 my $q;
 my $parse = sub { PublicInbox::IMAPsearchqp::parse($imap, $_[0]) };
 
+$q = $parse->(qq{BODY oops});
+is($q->{xap}, 'b:"oops"', 'BODY key supported');
+
 $q = $parse->(qq{OR HEADER TO Brian (OR FROM Ryan (OR TO Joe CC Scott))});
 is($q->{sql}, undef, 'not using SQLite for complex query');
 is($q->{xap}, '(t:"brian" OR (f:"ryan" OR (t:"joe" OR c:"scott")))',