Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/RelayEval.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
61 0 0 unless ($hostname =~ /[a-zA-Z]/)
64 0 0 if (@parts > 1 and $parts[-1] =~ /(?:\S{3,}|ie|fr|de)/) { }
0 0 elsif (@parts > 2) { }
77 0 0 if ($helo eq "msn.com" and $rdns eq "hotmail.com")
86 0 0 if ($rcvd)
91 0 0 if ($rcvd =~ /\bhelo=($IP_ADDRESS)(?=[\000-\040,;\[()<>]|\z)/i and not $1 =~ /$IP_PRIVATE/)
117 0 0 unless $relay->{'helo'} =~ /^$IP_ADDRESS$/ and not $relay->{'helo'} =~ /$IP_PRIVATE/
124 0 0 if $relay->{'ip'} =~ /^$IP_ADDRESS$/ and not $relay->{'ip'} =~ /$IP_PRIVATE/ and $relay->{'helo'} ne $relay->{'ip'} and $relay->{'helo'} =~ /^(\d+\.\d+\.\d+\.)/ and index($relay->{'ip'}, $1) != 0
164 0 0 unless defined $srcvd
167 0 0 unless $srcvd->{'rdns'} =~ /\./
170 0 0 if $srcvd->{'ip_private'}
182 0 0 if (exists $pms->{'from_domain_in_received'}) { }
183 0 0 if (exists $pms->{'from_domain_in_received'}{$domain})
184 0 0 if ($desired eq 'true') { }
198 0 0 unless ($from =~ /\b\Q$domain\E/i)
206 0 0 if ($rcvd =~ / rdns=\S*\b$domain [^\]]*by=\S*\b$domain /)
217 0 0 unless (exists $pms->{'no_rdns_dotcom_helo'})
240 0 0 if $rcvd->{'ip_private'}
247 0 0 unless defined $helo_host
260 0 0 if ($helo_host =~ /(?:\.|^)(lycos\.com|lycos\.co\.uk|hotmail\.com
267 0 0 if ($no_rdns)
278 0 0 unless exists $pms->{'mismatch_from'}
285 0 0 unless exists $pms->{'mismatch_ip_helo'}
310 0 0 unless defined $by[$i] and $by[$i] =~ /^\w+(?:[\w.-]+\.)+\w+$/
312 0 0 if (defined $from[$i] and defined $fromip[$i])
313 0 0 if ($from[$i] =~ /^localhost(?:\.localdomain)?$/)
314 0 0 if ($fromip[$i] eq "127.0.0.1")
327 0 0 defined $frm ? :
0 0 defined $hlo ? :
0 0 defined $by ? :
334 0 0 unless $by =~ /^\w+(?:[\w.-]+\.)+\w+$/
338 0 0 if (defined $hlo and defined $fip)
339 0 0 if ($hlo =~ /^\d+\.\d+\.\d+\.\d+$/ and $fip =~ /^\d+\.\d+\.\d+\.\d+$/ and $fip ne $hlo)
347 0 0 if ($hclassb and $fclassb and $hclassb ne $fclassb and not $hlo =~ /$IP_PRIVATE/o)
358 0 0 if (defined $prev and $i > 0 and $prev =~ /^\w+(?:[\w.-]+\.)+\w+$/ and $by ne $prev and not _helo_forgery_whitelisted($by, $prev))
372 0 0 if (would_log("dbg", "eval") == 2)