[Rspamd-Users] Search for terms in the body

christian usenet at schani.com
Thu Feb 8 18:01:44 UTC 2024


That's what I was looking for

Thanks

Am 08.02.2024 um 18:47 schrieb Gerald Galster:
>>
>> Hello, is it possible to search for terms in the body with a multimap and add a counter to each term found? So count up the counter.
>>
>> Thanks for help
>> Christian
>>
>>
>> 	CONTENT_BLACKLISTED {
>> 		type = "content";
>> 		filter = "full"; # can be full, body, oneline, text, rawtext
>> 		map = file://etc/rspamd/maps.d/regex_body.map;
>> 		##prefilter = "true";
>> 		##action = "add header";
>> 		score = 1.0
>> 		regexp = true;
>> 		description = "Sucht nach Wörtern in der gesamten Email";
>> 	}
> 
> You can add multi = true; to CONTENT_BLACKLISTED, then every occurence will add to the spam score.
> 
> https://rspamd.com/doc/modules/multimap.html#get-all-matches
> 
> Best regards,
> Gerald
> 


More information about the Users mailing list