[Mimedefang] Correct?

Jason Englander jason at englanders.cc
Tue May 20 14:00:01 EDT 2003


On Fri, 16 May 2003, Link, Pete wrote:

> If the recipients are not in the mre.net, mre-consulting.com or
> mreconsulting.com then attach the boiler plate.

Ignoring the rest of your message, here's what I'd do based on that
sentence:

my $boilerplates_suck_but_ill_add_one_anyway = 1;
foreach my $recipient (@Recipients) {
  if ($recipient =~ /@(mre\.net|mre-consulting\.com|mreconsulting\.com)$/i) {
    $boilerplates_suck_but_ill_add_one_anyway = 0;
  }
}
if ($boilerplates_suck_but_ill_add_one_anyway == 1) {
  # Attach it
}

-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list