You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/12/08 12:13:33 UTC

[Bug 4363] [review] rfe: windows line ending support

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4363


SiberianGhost@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From SiberianGhost@hotmail.com  2006-12-08 03:13 -------
patch from Theo Van Dinter work incorrect with binary messages in MS-TNEF 
format.
When You change \r?\n in message body - you can replace single \n to \r\n
To correct only headers - you ned to replace 
$msg =~ s/\r?\n/$self->{msg}->{line_ending}/g;
to below code
#----------
$msg =~ m/\r?\n\r?\n/;
my $msghead = $`;
my $msgbody = $';
$msghead =~ s/\r?\n/$self->{msg}->{line_ending}/g;
$msg=$msghead.$self->{msg}->{line_ending}.$self->{msg}->{line_ending}.$msgbody;



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.