http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5344
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From [EMAIL PROTECTED] 2007-04-20 06:15 -------
I've just added a new test case that exposes it clearly -- t/line_endings.t .
the bug is now fixed in SVN trunk, I think -- basically, if you use spamassassin
-t < msg, a tmpfile is created, *without* binmode(). This results in the line
endings being doubled-up on win32; input from STDIN comes in as binmode(), so
with "\r\n" line endings, and when it's written to the tmpfile it's written as
"\r\r\n"!
the Message code then doesn't see a \r\n line between header and body, because
that line's been replaced with \r\r\n, hence the MISSING_HB_SEP.
I also found another spot where tmpfiles are created without binmode(), also
fixed.
: jm 100...; svn commit -m "bug 5344: use binmode() when creating temp files so
that line endings are preserved sanely; add more test cases"
Sending lib/Mail/SpamAssassin/Message.pm
Sending lib/Mail/SpamAssassin/Util.pm
Sending spamassassin.raw
Sending t/line_endings.t
Transmitting file data ....
Committed revision 530795.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.