https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7741

--- Comment #26 from Marcel <[email protected]> ---
Here is a proposed fix for this. Just change line 202
https://github.com/apache/spamassassin/blob/3.4/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm#L202

From:
$country = $db->country( ip => $ip );

To:
if (index($db->metadata()->description()->{en} ,'City') != -1) {
 $country = $db->city( ip => $ip );
} else {
 $country = $db->country( ip => $ip );
}

I've confirmed that this fix works for both the GeoIP2 city and country
databases. If you guys want I could submit patches for RelayCountry.pm and
URILocalBL.pm.

Normally I wouldn't care much about the 3.4.3 branch but with Centos 8 out in
the coming months that means that its going to be stuck with 3.4.3 for a
decade.

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

Reply via email to