[Mimedefang] replacing recipients

David F. Skoll dfs at roaringpenguin.com
Sun Sep 1 21:12:01 EDT 2002


On Sat, 31 Aug 2002, Tony Nugent wrote:

> If recipients are changed with calls to delete_recipient() and
> add_recipient(), it appears that the values in the global @Recipient
> array are not updated accordingly.

This is a feature, not a bug, otherwise something like:

	foreach $recip (@Recipients) {
		delete_recipient($recip);
	}

would not work. (I think... not sure how Perl handles iterating over
an array which is changing.  Maybe it copies the list once and works
on the copy?)


> I expected the @Recipient list
> to reflect the current (changed) state but this was not the case,

Right.  You have to update @Recipients yourself, if you need the
behaviour you describe.

Regards,

David.





More information about the MIMEDefang mailing list