>my ($sendusername, $senddomain) = split('@', $Sender);
Except that one, a sender address can have angle brackets around it;
and two, it can have more than one @-sign, if someone uses a route-addr.
Better to use a regexp that anchors to the end, something like:
if($Sender =~ /[EMAIL PROTECTED]>?$/i) {
# the sender is local...
}
HTH...
Jim McCullars
University of Alabama in Huntsville
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang