[Mimedefang] Question about resend_message() (Sendmail)

Dianne Skoll dianne at skoll.ca
Thu Oct 18 10:16:51 EDT 2018

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

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


> 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.



More information about the MIMEDefang mailing list