[Mimedefang] recipient count in filter()
Ron Peterson
rpeterso at mtholyoke.edu
Tue Nov 21 08:43:49 EST 2006
On Mon, Nov 20, 2006 at 09:43:50AM +0100, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, 18 Nov 2006, Ron Peterson wrote:
>
> > my $recipient_count = $#Recipients + 1;
> >
> >in filter(), but the recipient count is always one. What's an elegant
> >way to get the value of $#Recipients (all of them) into filter()?
>
> What do you mean with "all of them"? I mean, the value of $#Recipients is
> a number.
>
> You could replace the expresion by: scalar(@Recipients), but it shouldn't
> matter.
>
> Maybe you've altered the @Recipients array in some way?
Nope, I don't touch @Recipients.
If I put the following in my filter() block, the recipient count that is
logged is always one.
if( @Recipients ) {
my $recipient_count = scalar(@Recipients);
md_syslog('info', "Recipient Count: $recipient_count");
}
--
Ron Peterson
Network & Systems Manager
Mount Holyoke College
http://www.mtholyoke.edu/~rpeterso
More information about the MIMEDefang
mailing list