9.8.0
Changes
- Replaced the bundled DB-IP Country Lite database with the IPinfo Lite database (
parsedmarc/resources/ipinfo/ipinfo_lite.mmdb, under the Creative Commons Attribution-ShareAlike 4.0 License) for greater IP-to-country lookup accuracy. The download URL / cached filename / packaged module path have all moved fromdbip/dbip-country-lite.mmdbtoipinfo/ipinfo_lite.mmdb. get_ip_address_country()now reads MMDBs withmaxminddbdirectly and handles both schemas — the IPinfo flat-top-levelcountry_codefield and the MaxMind/DBIP nestedcountry.iso_codefield — so users who drop in their own MMDB from any of these providers continue to work. The in-disk search list for user-supplied files still includesipinfo_lite.mmdb,GeoLite2-Country.mmdb, anddbip-country-lite*.mmdb.- Dropped the
geoip2dependency (its only use was the.country()helper, which is incompatible with the IPinfo schema). Addedmaxminddbas a direct dependency — it was already installed transitively throughgeoip2, so this is a no-op for most environments.
Upgrade notes
- Callers that imported
parsedmarc.resources.dbipdirectly need to switch toparsedmarc.resources.ipinfo. Theparsedmarc.resources.dbipmodule has been removed. - Callers that imported
geoip2only becauseparsedmarcdepended on it will need to add it to their own requirements.parsedmarcitself no longer depends ongeoip2. - The auto-update download URL used by previous parsedmarc versions (
.../dbip/dbip-country-lite.mmdb) is no longer hosted onmaster; those versions will fail to download and fall back to their bundled copy, which is the documented behavior ofload_ip_db().