]> Sergey Matveev's repositories - public-inbox.git/commit
imap: support out-of-bounds ranges
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:35 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commitdaa98292c95a403975fb4906088c160758b15106
tree8e31c89efd350b23b03070f87751c902b31dc403
parent94245dfc85576b5981b23fc5c917189b5fbbe3e8
imap: support out-of-bounds ranges

"$UID_START:*" needs to return at least one message according
to RFC 3501 section 6.4.8.

While we're in the area, coerce ranges to (unsigned) integers by
adding zero ("+ 0") to reduce memory overhead.
lib/PublicInbox/IMAP.pm
t/imapd.t