I was trying to use RubyMail to parse a multipart/related message coming over HTTP, combining some of the HTTP headers
(Content-Type) with the rest of the POST data. However, the line endings of the incoming data ended with CRLF (as per
RFC 822), and these were choking RubyMail.
I fixed the problem by changing references in the RMail code from \n to \r\n, but I didn't make my solution thorough
enough (I didn't need it robust, I was making a proof of concept).
Perhaps \n works on Windows because the line ending on Windows is CRLF, but on Unix \n is just LF.
|