Alter contents_category in amavisd Custom

Ralf Kirmis rk at
Tue Mar 8 16:21:04 CET 2016


i want to alter the contents_category in an amavisd custom hook.

The checks would report as CC_BANNED oder CC_VIRUS and i want to declare the mail as CC_CLEAN.

I've tried with $r->add_contents_category(CC_CLEAN,0) and $msginfo->is_in_contents_category(CC_CLEAN)
But this seems to add another contents_category and not to overwrite the contents_category.

How can i delete the other contents_categorys from the list or overwrite it to CC_CLEAN as amavisd decides on the worst category,


Ralf Kirmis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list