]> Sergey Matveev's repositories - public-inbox.git/commit
imap: fix UID-offset-to-MSN mapping bugs
authorEric Wong <e@yhbt.net>
Tue, 16 Jun 2020 06:19:08 +0000 (06:19 +0000)
committerEric Wong <e@yhbt.net>
Tue, 16 Jun 2020 21:42:02 +0000 (21:42 +0000)
commit74c897120af8ac4cac17d9f76d21c84f903e24be
treed4e236b80d3c3b1c5f83e7dc4e6cff6f8b8d9587
parent9c2bac94376c5029d258fed1ad3bf8c6b2270019
imap: fix UID-offset-to-MSN mapping bugs

We need to clear the UID-offset-to-MSN mapping when
leaving mailboxes via EXAMINE/SELECT/CLOSE.

Furthermore, uo2m_last_uid() needs to account for tiny mailboxes
where the scalar representation of {uo2m} may be evaluated to
`false' in a boolean context.
lib/PublicInbox/IMAP.pm