mvz/msgconvert — pull request #2 by cramoisan (2014-07-16 16:08:55+00:00)
Title: Added binmode(OUT)

I had an issue on Windows Perl (ActiveState and Strawberry, but not in Cygwin Perl) where the output file would have extra carriage return characters at the end of each line. Basically I would get a \r\r\n instead of \r\n . This prevented me from generating correctly formatted files. I think this is due to Email::Stuff trying to replace \n with \r\n (see http://www.perlmonks.org/bare/?node_id=817711). I added binmode to fix this issue.