]> Sergey Matveev's repositories - public-inbox.git/commit
imap: STATUS/EXAMINE: rely on SQLite overview
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:05:12 +0000 (07:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commitd0dcab33e0b02bf3299deea40f96ef5fff10fe73
tree2c0343463544400798fb73e7567978cb83af116b
parent56e4554469fb86c2cac63d9eabaffa64c531e835
imap: STATUS/EXAMINE: rely on SQLite overview

We can get exact values for EXISTS, UIDNEXT using SQLite
rather than calculating off $ibx->mm->max ourselves.

Furthermore, $ibx->mm is less useful than $ibx->over for IMAP
(and for our read-only daemons in general) so do not depend on
$ibx->mm outside of startup/reload to save FDs and reduce kernel
page cache footprint.
lib/PublicInbox/DummyInbox.pm
lib/PublicInbox/IMAP.pm
lib/PublicInbox/IMAPD.pm
lib/PublicInbox/Over.pm
t/over.t