https://gitlab.synchro.net/main/sbbs/-/commit/8195f1169c09075e219abebb
Modified Files:
src/sbbs3/mailsrvr.cpp
Log Message:
mailsrvr: never send a truncated POP3 LIST or UIDL listing
The "list all" loop for LIST and UIDL stopped as soon as the mail base
became locked, after "+OK" had been sent and before the terminating
".", so the client received a well-formed listing of only the first
messages. A client that leaves mail on the server treats a message
missing from the UIDL listing as removed, forgets it, and downloads it
again as new on its next check: a session that collided with the
daily e-mail purge caused 204 of 449 messages to be re-downloaded.
The listing is now built first and sent only when every message was
read; otherwise the reply is "-ERR" and the session ends. A failure to
read a message's index or header also fails the listing, where before
the message was silently left out.
The lock check was added to the loop in 71aa48f825f (2026-01-16).
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)