I am going to start again on this because either what I am saying isn't
clear or understood or I am completely off track and being humoured.
This is the code - annotated by me -
### At this point islocalmailaddress is 0
if (!$DoLDAP
&&
"$u$h" =~ /^(.*@)(.*)$/
&&
! exists($DomainVRFYMTA{lc $2})
&&
! exists($FlatVRFYMTA{lc "\...@$2"})
&&
"$u$h" =~ /^(.*)(@.*)$/
&&
(!$LocalAddresses_Flat or ! matchSL( $2,
'LocalAddresses_Flat' ) )
&&
&localmail("$u$h")
)
{
$this->{islocalmailaddress} = 1;
### At this point islocalmailaddress is being set to 1
### so the conditions above equate to TRUE
} else {
$this->{islocalmailaddress} = 0;
}
# check recipient against flat list?
my $uh="$u$h";
$this->{alllog}=1 if $allLogRe && $uh =~ ( '(' . $allLogReRE . ')' );
if ($SepChar) {
my $char="\\$SepChar";
if ($u=~"(.+?)$char") {
$uh="$...@$h";
$uh=~s/"//;
}
}
### Remember - at this point islocalmailaddress is 1 ALREADY
if ( $LocalAddresses_Flat && matchSL( $uh, 'LocalAddresses_Flat' ) ) {
if(matchSL( $uh, 'RejectTheseLocalAddresses' )) {
d("$u$h rejected by bounce address list\n");
} else {
$this->{islocalmailaddress}=1;
d("$u$h validated by flat LocalAddresses list\n");
}
}
### All this code does is set islocalmailaddress to 1 if the address is
in LocalAddresses_Flat - if it isn't it DOESNT ALTER IT
So because the first big condition equates to true the email to
[email protected] is assumed to be a valid local
email address - even though LocalAddresses_Flat says it isn't.
Is this clear enough ?
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test