I would've thought the ping-ponging of making a new POP3
connection and enabling STARTTLS was enough to trigger the
previous connection to close and unlock the maildrop. In most
test runs, that appeared sufficient, but occasional failures
still happened.
The diagnostics added a few weeks ago reveals a
"[IN-USE] unable to lock maildrop" message seen by Net::POP3,
so lets try calling Net::POP3->quit on the client to explicitly
trigger ->unlock_mailbox on the server side and hope these
occasional test failures go away.
Followup-to: f4216637 (t/pop3d: add diagnostics on APOP after STLS failure, 2025-10-22)
'TOP numlines=1');
$msg = $np3->top(2, 10000);
+ ok $np3->quit, 'QUIT works after TOP'; # needed for later APOP?
$msg = join('', @$msg);
$msg =~ s/\r\n/\n/g;
is_deeply(PublicInbox::Eml->new($msg), $patch,