Mailing List Archive

[Bug 3223] New: RelayCountry: IP::Country::Fast can return undef
http://bugzilla.spamassassin.org/show_bug.cgi?id=3223

Summary: RelayCountry: IP::Country::Fast can return undef
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: matt@nightrealms.com


In the extract_metadata(), $reg->inet_atocc($ip) can return undef, which
leads to a warning message, and also won't give any extra information to
the X-Relay-Countries header. I changed it so that if inet_atocc() returns
undef, $cc gets set to "XX" instead, so Bayes can use an un-identified
country-code for as fodder. Attaching patch.

(Should something like this go under "libraries" or "learner"? Or should there
be a "plugins" component?)



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