Re: [AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-07 Thread TOUZEAU DAVID
Many many thanks This is very great I fact this way is more powerfull ! no i can code many things !! Mark Martinec a écrit : > David, > > >> *** Amavis send to recipients has Passed BANNED ! >> > > Similar to my previous example, but this one shows > how to block mail as banned: > > sub c

Re: [AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-07 Thread Mark Martinec
David, > *** Amavis send to recipients has Passed BANNED ! Similar to my previous example, but this one shows how to block mail as banned: sub checks { my($self,$conn,$msginfo) = @_; for my $r (@{$msginfo->per_recip_data}) { # $r->add_contents_category(CC_VIRUS,0) if !$r->bypass_virus_ch

[AMaViS-user] [Amavis::Custom] : Unable to block mail after amavis results

2009-01-03 Thread TOUZEAU DAVID
Dear my custom script will block any message passed by the custome script (just for testing) It seems that amavis don't care about the result of Amavis::Custom What can i do in order to force the mail to reject the message ? how to change final_destiny to D_DISCARD ? Jan 3 18:09:48 pc-touzeau