]> Sergey Matveev's repositories - public-inbox.git/commit
watch: support IMAP polling
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:03:40 +0000 (10:03 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:27:17 +0000 (22:27 +0000)
commitbbf4159b7694241d2139be641ced4c485303714a
treebc5d7352ed28d51d03f5f1dc44d636ae0d9fce97
parentfac2f5b63f0595b67a99784c8a9f9801c1fc9f09
watch: support IMAP polling

Not all IMAP servers support IDLE, and IDLE may be prohibitively
expensive for some IMAP servers with many inboxes.  So allow
configuring a imap.$IMAP_URL.pollInterval=SECONDS to poll
mailboxes.

We'll also need to poll for NNTP servers in the future.
lib/PublicInbox/WatchMaildir.pm
t/imapd.t