]> Sergey Matveev's repositories - public-inbox.git/commit
net_reader: handle single-message IMAP mailboxes
authorEric Wong <e@80x24.org>
Fri, 19 Feb 2021 12:09:53 +0000 (05:09 -0700)
committerEric Wong <e@80x24.org>
Fri, 19 Feb 2021 19:25:24 +0000 (19:25 +0000)
commit74e31aec6f66f695850bacf6379a034ea49a1d28
tree60e0d3945958867570d1da9576eca0db964e87f8
parentfc69b9b91323c62e8abeaa8723f4d3fffdac0e27
net_reader: handle single-message IMAP mailboxes

Due to an off-by-one error, we were unable to read mailboxes
with only a single message of UID:1.  Without this fix, the
message with UID:1 could only be read after UID:2 was created;
so there's no permanent data loss as long as a new message
showed up.

This affects all releases of public-inbox-watch with IMAP
support, though it probably went unnoticed because single
message inboxes are rare.
lib/PublicInbox/NetReader.pm