[Rspamd-Users] Search for terms in the body

Gerald Galster list+rspamd at gcore.biz
Thu Feb 8 17:47:51 UTC 2024


> 
> 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