https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6456

Kevin A. McGrail <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Kevin A. McGrail <[email protected]> 2010-06-21 10:42:25 
EDT ---
I wonder if this shouldn't have an OS check before sending it.  

I'd suggest something like this pseudo code in a central place so it is called
only once.

$delimiter = "\n";

if (is_windows) {
  $delimiter = "\n\r";
}

Then change the print statements to something like:

my($nwrite) = syswrite(STDLOG, sprintf("%s [%s] %s: %s%s", scalar localtime,
$$, $level, $msg, $delimiter));

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to