[Rspamd-Users] How to check, which expression matched?
Gerald Galster
list+rspamd at gcore.biz
Wed Aug 14 15:39:00 UTC 2024
>> 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?
See https://lists.rspamd.com/pipermail/users/2024-June/003319.html
Best regards,
Gerald
More information about the Users
mailing list