Condition Coverage

blib/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Criterion Covered Total %
condition 55 83 66.2


and 3 conditions

line !l l&&!r l&&r condition
99 46 36 20 $did_user_specify_trust and $did_user_specify_internal
131 328 0 4 $str and $str =~ /($IP_ADDRESS)/
171 17 3 46 $in_trusted and not $found_msa
214 0 0 30 $in_internal and not $relay->{'auth'}
0 24 6 $in_internal and not $relay->{'auth'} and not $internal->contains_ip($relay->{'ip'})
369 212 1 1 /^from (\S+) by [^\s;]+ ?;/i and not $1 =~ /^\[[\d.]+\]$/
412 6 193 14 / by / and / with ((?:ES|L|UTF8S|UTF8L)MTPS?A|ASMTP|HTTP[SU]?)(?: |;|$)/i
199 0 0 / by mx\.google\.com with ESMTPS id [a-z0-9]{1,4}sm[0-9]{2,9}[a-z]{3}\.[0-9]{1,3}\.[0-9]{4}\.(?:[0-6][0-9]\.){4}[0-6][0-9]/ and /\(version=([^ ]+) cipher=([^\)]+)\)/
186 3 6 /authenticated/ and /^from .*?(?:\](?: \([^)]*\))?\)|\)\]) .*?\(.*?authenticated.*?\).*? by/
185 0 3 / \(authenticated as / and /\) by .+ \(\d{1,2}\.\d\.\d{3}(?:\.\d{1,3})?\) \(authenticated as .+\) id /
175 9 0 /CommuniGate Pro (HTTP|SMTP|XIMSS|IMAP)/ and / \(account /
6 177 1 / by / and / \(via (HTTP.?)\)(?: |;|$)/i
473 201 2 0 /aol\.com/ and /with HTTP \(WebMailUI\)/
641 161 4 0 /\bwith HTTP\b/ and /^($IP_ADDRESS) \(\[$IP_ADDRESS\]\) by (\S+)/
807 79 0 0 / via HTTP$/ and /^\[($IP_ADDRESS)\] by (\S+) via HTTP$/
926 51 0 0 / with http for / and /^\[($IP_ADDRESS)\] by (\S+) with http for /
932 51 0 0 / via smap / and /^(\S+)\(($IP_ADDRESS)\) by (\S+) via smap /
947 51 0 0 / \(Post/ and /^\[($IP_ADDRESS)\] by (\S+) \(Post/
953 51 0 0 / \(ArGoSoft/ and /^\[($IP_ADDRESS)\] by (\S+) \(ArGoSoft/
966 50 0 0 / with BSMTP/ and /^\S+ by \S+ with BSMTP/
997 37 2 4 / \(CommuniGate Pro/ and /^(\S+) \(\[($IP_ADDRESS)\] verified\) by (\S+) \(/
1227 1 0 1 not $helo and /^(\S+)[^-A-Za-z0-9\.]/
1271 0 0 2 not $ip and /\[($IP_ADDRESS)\]/
1278 0 0 2 $ip and $by

or 2 conditions

line l !l condition
235 3 63 $relay->{'msa'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
100 36 2 44 $did_user_specify_trust || $did_user_specify_internal
172 36 1 9 $did_user_specify_trust or $did_user_specify_internal
201 0 30 7 $relay->{'auth'} || $trusted->contains_ip($relay->{'ip'})