pop3d sends messages with a blank line between each header line. This causes Multipart Mime messages not to be recognized. In particular pop3 client fails to recognized a multipart message sent by pop3d.
The error is caused by both the pop3d package and the mime package handling the network crlf standard. mime appends \r to all headers for mime::buildmessage and mime::copymessage. pop3d fconfigures the socket channel to crlf.
This diff mods pop3d to follow the mime package convention; leaving the channel as translation lf and adding \r to strings where required.
It has been tested for message sizes that can be sent as one segment. The test suite was not run.
|