[Mimedefang] recipient count in filter()

Ron Peterson rpeterso at mtholyoke.edu
Sat Nov 18 18:24:49 EST 2006


I'd like to multiply the total recipient count by the attachment size to
ascertain whether to call action_replace_with_url in filter().

I tried something like:

  my $size = (stat($entity->bodyhandle->path))[7];
  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()?

TIA.

-- 
Ron Peterson
Network & Systems Manager
Mount Holyoke College
http://www.mtholyoke.edu/~rpeterso



More information about the MIMEDefang mailing list