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

--- Comment #9 from Henrik Krohns <apa...@hege.li> ---
Now the captured value is set as a tag, which should simplify things.

Committed revision 1900910.
Committed revision 1900911.

echo -e "X-ESP-ID: 12345\n\nHello" | \
 SA_LOGGER_ESCAPE=0 spamassassin \
 --cf 'header __X_ESP_ID X-ESP-ID =~ /^(?<XESPID>\d+)$/' \
 --cf 'askdns ESP_LOOKUP _XESPID_.espbl.foobar.com A 127.0.0.2' -t -D askdns
2>&1 | \
 grep ESP

dbg: askdns: rule ESP_LOOKUP depends on tags: XESPID
dbg: askdns: launching query (ESP_LOOKUP): 12345.espbl.foobar.com

Of course this doesn't help to transform the value if raw value can't be used
for lookups. The proposed tag modifiers would be needed and/or a new HashBL
function.

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

Reply via email to