You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2010/02/16 12:46:13 UTC

svn commit: r910488 - /spamassassin/trunk/spamd/spamd.raw

Author: mmartinec
Date: Tue Feb 16 11:46:12 2010
New Revision: 910488

URL: http://svn.apache.org/viewvc?rev=910488&view=rev
Log:
Bug 6331 - Win32: spamd logging: syslog-socket
make --syslog-socket default to none on Windows

Modified:
    spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/spamd/spamd.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd/spamd.raw?rev=910488&r1=910487&r2=910488&view=diff
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Tue Feb 16 11:46:12 2010
@@ -442,7 +442,12 @@
 #  socket of 'none' means as much as --syslog=null. Sounds complicated? It is.
 #  But it works.
 # )
-my $log_socket = lc($opt{'syslog-socket'}) || 'unix';
+my $log_socket = lc($opt{'syslog-socket'});
+
+if (!defined $log_socket || $log_socket eq '') {
+  $log_socket =
+    Mail::SpamAssassin::Util::am_running_on_windows() ? 'none' : 'unix';
+}
 
 # This is the default log file; it can be changed on the command line
 # via a --syslog flag containing non-word characters.
@@ -3040,16 +3045,17 @@
 logger and requires a perl module Win32::EventLog to be installed.
 For more information please consult the Sys::Syslog documentation.
 
-The default is to try C<unix> first, falling back to C<inet> if perl detects
-errors in its C<unix> support.
+A historical setting --syslog-socket=none is mapped to --syslog=stderr.
+
+A default for Windows platforms is C<none>, otherwise the default is
+to try C<unix> first, falling back to C<inet> if perl detects errors
+in its C<unix> support.
 
 Some platforms, or versions of perl, are shipped with old or dysfunctional
 versions of the B<Sys::Syslog> module which do not support some socket types,
 so you may need to set this option explicitly.  If you get error messages
 regarding B<__PATH_LOG> or similar spamd, try changing this setting.
 
-A historical setting --syslog-socket=none is mapped to --syslog=stderr.
-
 The socket types C<file> is used internally and should not be specified.
 Use the C<-s> switch instead.