[Rspamd-Users] How to check, which expression matched?
Johannes Rohr
johannes at rohr.org
Wed Aug 14 14:45:57 UTC 2024
Am 14.08.24 um 15:52 schrieb Winkelmann, Bun-Jan via Users:
> Hi Johannes,
>
> we have a multimap with regular expression. I index the regex pattern to see which rule exactly match.
>
> Example reputation_regex.map:
> /bad.*compare/i BODY_PHISHING:2:rule7
> /I am a phishing mail/i BODY_PHISHING:0.5:rule8
> /verify\syour\saccount/i BODY_PHISHING:1:rule9
>
> It is describe here under topic "Maps content" https://rspamd.com/doc/modules/multimap.html
>
> Maybe you can change your map and rescan the mail to see which lines match with the mail. You can see the matched rules in the logfile, webpage or in the email header.
Thanks a lot!!! Unfortunately, I cannot find the work "index" in that
section. Could you specify, in which subsection explains how this
indexing should be done? IN your example, it looks as if you have three
colums, the first one is the name of the symbol, the second one a score
and the third one a name. Is hat correct? Does it have to be that way?
Thanks so much!
Johannes
>
>
More information about the Users
mailing list