[Mimedefang] Determining current recipient
Andrew Catford
andrewc at internode.com.au
Thu Jun 12 16:58:12 EDT 2003
On Thu, 12 Jun 2003, David F. Skoll wrote:
> On Thu, 12 Jun 2003, Andrew Catford wrote:
>
> > Is there a way to tell which -particular- recipient is being dealt with
> > from inside a filter?
>
> Certainly: $Recipients[0]
>
> > @Recipients remains static (obviously), and is therefore of no use for
> > this purpose.
>
> Why would you think that? Read the code to see how it all works...
Because as a test, I just did an 'action_add_header( "X-Blah",
"$Recipients");', and the order of the recipients was identical in each
copy of the message..
This could mean I am using stream_by_recipient() incorrectly.
I am using it like so:
sub filter_begin {
if ( stream_by_recipient() ) {
return;
}
# Other code here
[...]
}
Is this correct?
Thanks
Andrew
More information about the MIMEDefang
mailing list