On Thu, 18 Oct 2018 09:57:40 -0400
John Von Essen <j...@quonix.net> wrote:

> If I call delete_recipient(); with no argument, does it act as a
> catch-all and delete ALL recipients?

Nope.

> Or do have do something like:
> foreach(@Recipients) { delete_recipient($_); }

Yup.  You could wrap it in a delete_all_recipients() function if you like.

> Or could I just null the @Recipients array (@Recipients = ();
> add_recipient($SpamBox);)

Nope.  Anything you do in your filter that only affects memory within
the Perl process has absolutely no effect on Sendmail.  You have to
call one of the functions that communicates with Sendmail to actually
affect anything.

If you look at the source, you'll see that delete_recipient and
add_recipient make notes in the RESULTS file that ask the C code to
call appropriate milter functions to *actually* make the changes.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to