Discard an email from Custom module
Carsten Wolff
carsten at wolffcarsten.de
Thu Feb 26 10:09:17 CET 2015
Hi,
On Wednesday 25 February 2015 17:12:19 Giovanni Mancuso wrote:
> Hi,
>
> i tried to write a Amavis::Custom module and i have a question.
> Can i DISCARD an email from Custom module?
>
> I tried to use delivery_method but there isn't a "transport" that can do it.
>
> Which is the right way?
I guess the best way is probably to assign a Contents Category like so:
$msginfo->add_contents_category(CC_CHOOSEONE, 0);
and replace CC_CHOOSEONE by a Category that fits your case and is configured
to D_DISCARD (%final_destiny_maps_by_ccat).
Good luck!
Carsten
More information about the amavis-users
mailing list