]> Sergey Matveev's repositories - public-inbox.git/commit
imap: EXAMINE: avoid potential race conditions
authorEric Wong <e@yhbt.net>
Thu, 25 Jun 2020 10:09:37 +0000 (10:09 +0000)
committerEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:08:29 +0000 (10:08 +0000)
commit89efc8f4e8d603e4fad3c4c754e23561d82de2c1
tree238aaad487b111782cdae773111f1d8bbedcdc02
parent2a06fc8e54607e7d418ee746ab4e17ad48716c6d
imap: EXAMINE: avoid potential race conditions

We need to rely on num_highwater for UIDNEXT since the
highest `num' stored in over.sqlite3 may be rolled back
if the most recent messages were spam.

We also need to load the uo2m immediately on EXAMINE to ensure
EXISTS responses are always consistent with regard to future
updates.
lib/PublicInbox/IMAP.pm
lib/PublicInbox/Over.pm