[Feature] Add mapstats utility for multimap statistics analysis
Introduce a new utility to analyze Rspamd logs and count matches for
multimap module patterns. This helps identify ineffective map entries
and optimize multimap configurations.
Features:
- Parse file-based multimap configurations from rspamadm configdump
- Load and validate map files with support for:
* IP/CIDR patterns (IPv4/IPv6)
* Regular expressions with PCRE flags (imsxurOL)
* Plain string patterns (domains, hostnames, etc.)
* Full-line and inline comments
- Process Rspamd logs (plain or compressed: bz2, gz, xz, zst)
- Match log entries against map patterns
- Generate statistics report grouped by map source files
- Show match counts and comments for each pattern
- Report unmatched symbol values for debugging
Installation:
- Added to CMake install rules (installs as 'mapstats')
- Added to RPM spec file
- Debian packaging works automatically via CMake