Hi,

I'm trying to develop a amavisd-custom, but I have some doubts.

How can I discard a message?
I tried with two methods.

$msginfo->add_contents_category(CC_BANNED,0);
and
for my $r (@{$msginfo->per_recip_data}) {
            $r->add_contents_category(CC_BANNED,0);
}

But in both cases, the message was delivered.

Other function that I would like to do, is to send a message direct to
the quarantine if it has a certain word on the header fields.

I tried with this code:
Amavis::do_quarantine($conn, $msginfo, undef, ['sender-quarantine'],
'local:user-%m' );

But I get the following message:
(!)custom before_send error: Undefined subroutine &Amavis::Out::Lo
cal::mail_to_local_mailbox called at /usr/local/sbin/amavisd line 5726,
<GEN29> line 39.


Thanks for the help.

Lucas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to