Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/FreeMail.pm
Criterion Covered Total %
branch 5 146 3.4


line true false branch
217 0 5 if ($opts->{'key'} eq 'freemail_domains')
219 0 0 if ($temp =~ /^[a-z0-9.*?-]+$/i) { }
221 0 0 if ($value =~ /[*?]/) { }
236 0 5 if ($opts->{'key'} eq 'freemail_whitelist')
239 0 0 if ($value =~ /\w[.\@]\w/) { }
257 0 63 if (defined $self->{'freemail_temp_wc'})
272 0 63 if ($count + $wcount) { }
276 63 0 if ($self->{'main'}{'lint_rules'} or 1) { }
291 0 0 if $email eq ''
293 0 0 if (defined $self->{'freemail_whitelist'}{$email})
301 0 0 if (defined $self->{'freemail_whitelist'}{$domain})
305 0 0 if ($email =~ /$email_whitelist/)
309 0 0 if (defined $self->{'freemail_domains'}{$domain} or defined $self->{'freemail_domains_re'} and $email =~ /$self->{'freemail_domains_re'}/)
322 0 0 unless (defined $pms->{'freemail_cache'}{'body'})
329 0 0 if (defined $info->{'types'}{'a'} and not defined $info->{'types'}{'parsed'})
330 0 0 if ($uri =~ /^(?:(?i)mailto):$self->{'email_regex'}/)
332 0 0 unless defined $seen{$email}
334 0 0 if scalar @body_emails >= 20
349 0 0 if utf8::is_utf8($email)
350 0 0 unless $seen{$email}
352 0 0 if @body_emails >= 40
358 0 0 if (++$count_all == $pms->{'main'}{'conf'}{'freemail_max_body_emails'})
359 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_when_over_max'})
365 0 0 unless $self->_is_freemail($email)
366 0 0 if (++$count_fm == $pms->{'main'}{'conf'}{'freemail_max_body_freemails'})
367 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_when_over_max'})
376 0 0 if scalar keys %{$$pms{'freemail_cache'}{'body'};}
379 0 0 if (defined $pms->{'freemail_skip_body'})
392 0 0 if (defined $pms->{'conf'}{'descriptions'}{$rulename})
396 0 0 if ($pms->{'main'}{'conf'}{'freemail_add_describe_email'}) { }
408 0 0 unless $self->{'freemail_available'}
411 0 0 defined $regex ? :
413 0 0 unless (defined $header)
419 0 0 if (defined $regex)
421 0 0 if ($@)
429 0 0 unless (scalar @emails)
436 0 0 if ($self->_is_freemail($email))
437 0 0 if (defined $re) { }
438 0 0 unless $email =~ /$re/
455 0 0 unless $self->{'freemail_available'}
458 0 0 defined $regex ? :
460 0 0 unless $self->_parse_body($pms)
463 0 0 if (defined $regex)
465 0 0 if ($@)
471 0 0 if (defined $re) { }
0 0 elsif (scalar keys %{$$pms{'freemail_cache'}{'body'};}) { }
473 0 0 if ($email =~ /$re/)
493 0 0 unless $self->{'freemail_available'}
496 0 0 defined $regex ? :
499 0 0 if (defined $regex)
501 0 0 if ($@ or not defined $re)
510 0 0 unless (scalar keys %from_addrs)
518 0 0 unless $self->_is_freemail($email)
519 0 0 if (defined $re) { }
520 0 0 unless $email =~ /$re/
536 0 0 unless $self->{'freemail_available'}
541 0 0 if (defined $what) { }
542 0 0 if ($what ne 'replyto' and $what ne 'reply')
552 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_bulk_envfrom'})
554 0 0 if ($envfrom =~ /$skip_replyto_envfrom/)
565 0 0 if $from ne ''
566 0 0 if $replyto ne ''
568 0 0 if ($from_is_fm and $replyto_is_fm and $from ne $replyto)
574 0 0 if ($what eq 'replyto') { }
0 0 elsif ($what eq 'reply') { }
575 0 0 unless ($replyto_is_fm)
581 0 0 if ($replyto ne '' and not $replyto_is_fm) { }
0 0 elsif (not $from_is_fm) { }
590 0 0 $replyto_is_fm ? :
592 0 0 unless $self->_parse_body($pms)
595 0 0 if (scalar keys %{$$pms{'freemail_cache'}{'body'};})
596 0 0 $what eq 'replyto' ? :
599 0 0 if ($email ne $check)