]> Sergey Matveev's repositories - public-inbox.git/commit
lei: bail out earlier on IMAP writer failures
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 01:18:59 +0000 (01:18 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 01:35:02 +0000 (01:35 +0000)
commitc03e3836f127f549b8568b05ada7ab81684539fc
treefb49cfb9cd2cb9a470f55fb584ba7694d15b0153
parent0ce21001f0fd7f2369611f350f4722bb9597eca3
lei: bail out earlier on IMAP writer failures

Excessive IMAP connections can overload IMAP servers and cause
clients to be disconnected without diagnostic messages.
Use $lei->fail on these exceptions to propagate errors to the
CLI ASAP to avoid further errors down the line.

This ought to make problems more apparent for users using IMAP
destinations.

Reported-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://public-inbox.org/meta/CANiDSCsDfutAUMBLPZbxdyka+_jnhv+4YNYdL9QPRoC=wNUGCQ@mail.gmail.com/
lib/PublicInbox/LeiToMail.pm
lib/PublicInbox/NetReader.pm