]> Sergey Matveev's repositories - public-inbox.git/commit
imap: FETCH: try to make fake MSNs sequentially
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:05:11 +0000 (07:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit56e4554469fb86c2cac63d9eabaffa64c531e835
tree9e938f2167f3e1a1d533447b759cce6c95b3e7b4
parent4aa27d61cbf10fdad098b20ae4bcef8f4893e531
imap: FETCH: try to make fake MSNs sequentially

This appears to significantly improve header caching behavior
with mutt.  With the current public-inbox.org/git mirror(*),
mutt will only re-FETCH the last ~300 or so messages in the
final "inbox.comp.version-control.git.7" mailbox, instead of
~49,000 messages every time.

It's not perfect, but a 500ms query is better than a >10s query
and mutt itself spends as much time loading its header cache.

(*) there are many gaps in NNTP article numbers (UIDs) due to
    spam removal from public-inbox-learn.
lib/PublicInbox/IMAP.pm
t/imapd.t