Pop3SafeText
function Pop3SafeText(const aText: string): string;
REPLY TEXT IS ONE ASCII LINE BY CONSTRUCTION, and this is what enforces it.
Append writes ONE OCTET PER Char - the low byte - so a Char whose low byte happens to be CR or LF puts a frame boundary inside a reply. That is not a hypothetical encoding nicety: U+010D truncates to $0D and U+010A to $0A, and the two strings that reach a reply from outside this unit are both capable of carrying them - a Banner an operator typed in their own language, and a localized OS error message arriving as aWhy from a refused maildrop. The result is a second line the client reads as protocol.
Substituting rather than refusing, exactly as Pop3SafeUidl does for the one other policy-supplied string.