diff options
author | Eric Wong <e@yhbt.net> | 2020-06-10 07:04:25 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-13 07:55:45 +0000 |
commit | 71cbe4126d03dc79cfa8f3b13ba83c29af9da5d1 (patch) | |
tree | c81e6ed20b31ffef62fedc88e3da60b29156960d /t | |
parent | 1d6c44968bac13bafcd1b056d67261faee52519d (diff) | |
download | public-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.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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'); { |