]> Sergey Matveev's repositories - public-inbox.git/commit
lei_pmdir: do not attempt to trigger network auth
authorEric Wong <e@80x24.org>
Thu, 16 Sep 2021 20:15:20 +0000 (14:15 -0600)
committerEric Wong <e@80x24.org>
Thu, 16 Sep 2021 20:17:16 +0000 (20:17 +0000)
commit5ee47e3bb465db1c5bf0774700971374edd09bbd
treea99e2890970647c1dafc17d8d090fa1a520f3d93
parent77398fa98962fa5c1ab9eb15894ec5b19d0a386e
lei_pmdir: do not attempt to trigger network auth

Since some commands access both Maildirs and IMAP/NNTP servers
at the same time, LeiPmdir may see the same lei->{auth} and
lei->{net} objects as the sibling LeiInput-based workers.
Delete those at fork and do not attempt to do authentication in
those cases, since "net_merge_continue" will not be a registered
op and cause PktOp to fail even if authentication /can/ work
from a LeiPmdir worker.
lib/PublicInbox/LeiPmdir.pm