mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
1f9b640d9a
mox was already strict in its "\r\n.\r\n" handling for end-of-message in an smtp transaction. due to a mostly unrelated bug, sequences of "\nX\n", including "\n.\n" were rejected with a "local processing error". the sequence "\r\n.\n" dropped the dot, not necessarily a big problem, this is unlikely to happen in a legimate transaction and the behaviour not unreasonable. we take this opportunity to reject all bare \r. we detect all slightly incorrect combinations of "\r\n.\r\n" with an error mentioning smtp smuggling, in part to appease the tools checking for it. smtp errors are 500 "bad syntax", and mention smtp smuggling. |
||
---|---|---|
.. | ||
authresults.go | ||
authresults_test.go | ||
compose.go | ||
decode.go | ||
decode_test.go | ||
doc.go | ||
examples_test.go | ||
from.go | ||
hdrcmtdomain.go | ||
headerwriter.go | ||
messageid.go | ||
messageid_test.go | ||
parseheaderfields.go | ||
parseheaderfields_test.go | ||
part.go | ||
part_test.go | ||
qp.go | ||
readheaders.go | ||
referencedids.go | ||
referencedids_test.go | ||
threadsubject.go | ||
threadsubject_test.go | ||
time.go | ||
todo.go | ||
writer.go | ||
writer_test.go |