Alter contents_category in amavisd Custom

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


Hello,

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,


Regards,

Ralf Kirmis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160308/9c1b4b55/attachment.html>


More information about the amavis-users mailing list