about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:25 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commit71cbe4126d03dc79cfa8f3b13ba83c29af9da5d1 (patch)
treec81e6ed20b31ffef62fedc88e3da60b29156960d /t
parent1d6c44968bac13bafcd1b056d67261faee52519d (diff)
downloadpublic-inbox-71cbe4126d03dc79cfa8f3b13ba83c29af9da5d1.tar.gz
The RFC 3501 `sequence-set' definition allows comma-delimited
ranges, so we'll support it in case clients send them.

Coalescing overlapping ranges isn't required, so we won't
support it as such an attempt to save bandwidth would waste
memory on the server, instead.
Diffstat (limited to '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 8172a919..7af14f1b 100644
--- a/t/imapd.t
+++ b/t/imapd.t
@@ -309,6 +309,8 @@ EOF
 # message sequence numbers :<
 is($mic->Uid(0), 0, 'disable UID on '.ref($mic));
 ok($mic->reconnect, 'reconnected');
+$ret = $mic->fetch_hash('1,2:3', 'RFC822') or BAIL_OUT "FETCH $@";
+is(scalar keys %$ret, 3, 'got all 3 messages with comma-separated sequence');
 $ret = $mic->fetch_hash('1:*', 'RFC822') or BAIL_OUT "FETCH $@";
 is(scalar keys %$ret, 3, 'got all 3 messages');
 {