--- On Wed, 6/3/09, Steffen Kaiser 
<[email protected]> wrote:
> On Wed, 3 Jun 2009, Champ Clark III [Softwink] wrote:
> >> foreach $recip (@Recipients) {
> >>     delete_recipient($recip);
> >> }
> >> add_recipient('s...@localhost');
> 
> There had been reports that delete_recipient() is not
> successfull always. Do you know, if those recipients are
> funnily encoded or something like that? With/without angle
> brackets?

See also whether adding the new recipient BEFORE deleting the others has any 
effect.  It's possible that there could be something strange going on if a 
message hits zero recipients while in the milter interface, even if just 
temporarily.  As your added recipient will [most likely] NOT be in @Recipients 
(actually, you should check for it), it won't be removed.

+ add_recipient('s...@localhost');
  foreach $recip (@Recipients) {
      delete_recipient($recip);
+         if ($recip ne 's...@localhost');
  }
- add_recipient('s...@localhost');
_______________________________________________
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 [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to