mirror of
https://github.com/jhillyerd/inbucket.git
synced 2026-10-29 05:32:31 +00:00
a85a4ab996
- RETR and TOP now respond "-ERR You deleted message N" for messages marked deleted, as RFC 1939 sections 5 (RETR) and 7 (TOP) require; previously the message content was still sent. - STLS: a failed TLS handshake previously continued the session with the dead TLS connection installed as s.conn and a bogus tlsState, producing confusing follow-on errors. RFC 2595 section 4 requires the negotiation to complete before further commands, so a failure is now fatal: log it and terminate the session. Updates the scripted tests that previously pinned the old behavior, and adds a STLS handshake failure regression test. Signed-off-by: James Hillyerd <james@hillyerd.com>