]> Sergey Matveev's repositories - public-inbox.git/commit
watch: support imap.fetchBatchSize parameter
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:03:48 +0000 (10:03 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:27:24 +0000 (22:27 +0000)
commit9d4401395d5b08b5162e43b64fdb9b7169c10855
treecbd9b0600e4841ac58afcc3073cddd8ff0e78117
parent14e3edd2646beb3ccde7f6f15b54fadf2da4bc7a
watch: support imap.fetchBatchSize parameter

IMAP allows retrieving multiple messages with a single command,
and Mail::IMAPClient supports that.  Unfortunately, it means we
slurp multiple messages into memory at once.  This option allows
users to trade off memory usage to reduce network round-trips.

Ideally, we'd support pipelining; but AFAIK no widely installed
Perl IMAP library supports it.
lib/PublicInbox/WatchMaildir.pm