This regexp has assisted me well in this issue and might do the same since it is a fairly strict check for a match. I'm sure I picked it up from someone on the MD list so no props to anyone but them:

loop on length of $Recipients array and:

if ($Recipients[$i] =~ /^<?kmcgrail@(pccc.com|thoughtworhty.com)\.com>?$/i) {
...
}


Regards,
KAM

----- Original Message ----- > Bingo! @Recipients includes the angle brackets in the addresses, so I need
to add those to my expression or remove the ^ anchor. I chose the former.

_______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to