You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2014/09/01 20:51:02 UTC
svn commit: r1621867 -
/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm
Author: kmcgrail
Date: Mon Sep 1 18:51:01 2014
New Revision: 1621867
URL: http://svn.apache.org/r1621867
Log:
Bug 7079 to hide the Geo::IP warning
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm?rev=1621867&r1=1621866&r2=1621867&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm Mon Sep 1 18:51:01 2014
@@ -130,8 +130,12 @@ sub new {
# a uri_block_cc rule?
# this code burps an ugly message if it fails, but that's redirected elsewhere
+ open(OLDERR, ">&STDERR");
+ open(STDERR, ">", "/dev/null");
$self->{geoip} = Geo::IP->new(GEOIP_MEMORY_CACHE | GEOIP_CHECK_CACHE);
$self->{geoisp} = Geo::IP->open_type(GEOIP_ISP_EDITION, GEOIP_MEMORY_CACHE | GEOIP_CHECK_CACHE);
+ open(STDERR, ">&OLDERR");
+ close(OLDERR);
$self->register_eval_rule("check_uri_local_bl");