svn commit: r1932067 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <177218691482.2063085.6021691634933078767@svn02-us-east.apache.org>
Author: gbechis
Date: Fri Feb 27 10:08:34 2026
New Revision: 1932067

Log:
avoid warnings when connection breaks

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Razor2.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Razor2.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Razor2.pm	Fri Feb 27 10:04:49 2026	(r1932066)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Razor2.pm	Fri Feb 27 10:08:34 2026	(r1932067)
@@ -366,7 +366,7 @@ sub razor2_access {
 
   if ($err) {
     chomp $err;
-    if ($err =~ /(?:could not connect|network is unreachable)/) {
+    if ($err =~ /(?:could not connect|network is unreachable|Connection reset by peer)/) {
       # make this a dbg(); SpamAssassin will still continue,
       # but without Razor checking.  otherwise there may be
       # DSNs and errors in syslog etc., yuck
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.