Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/FreeMail.pm
Criterion Covered Total %
branch 4 152 2.6


line true false branch
235 0 0 if ($opts->{'key'} eq 'freemail_domains')
237 0 0 if ($temp =~ /^[a-z0-9.*?-]+$/i) { }
239 0 0 if ($value =~ /[*?]/) { }
254 0 0 if ($opts->{'key'} eq 'freemail_whitelist')
257 0 0 if ($value =~ /\w[.\@]\w/) { }
275 0 62 if (defined $self->{'freemail_temp_wc'})
291 0 62 if ($count + $wcount) { }
295 62 0 if ($self->{'main'}{'lint_rules'} or 1) { }
306 0 62 if ($self->{'freemail_available'} and not $self->{'email_regex'})
316 0 0 if $email eq ''
318 0 0 if (defined $self->{'freemail_whitelist'}{$email})
326 0 0 if (defined $self->{'freemail_whitelist'}{$domain})
331 0 0 if ($email =~ /$email_whitelist/)
337 0 0 if ($pms->{'conf'}{"freemail_import_$list"})
339 0 0 if ($email =~ /$regexp/o)
347 0 0 if (defined $self->{'freemail_domains'}{$domain} or defined $self->{'freemail_domains_re'} and $email =~ /$self->{'freemail_domains_re'}/)
360 0 0 unless (defined $pms->{'freemail_cache'}{'body'})
367 0 0 if (defined $info->{'types'}{'a'} and not defined $info->{'types'}{'parsed'})
368 0 0 if ($uri =~ /^(?:(?i)mailto):$self->{'email_regex'}/o)
370 0 0 unless defined $seen{$email}
372 0 0 if scalar @body_emails >= 20
387 0 0 if utf8::is_utf8($email)
388 0 0 unless $seen{$email}
390 0 0 if @body_emails >= 40
396 0 0 if (++$count_all == $pms->{'main'}{'conf'}{'freemail_max_body_emails'})
397 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_when_over_max'})
403 0 0 unless $self->_is_freemail($email, $pms)
404 0 0 if (++$count_fm == $pms->{'main'}{'conf'}{'freemail_max_body_freemails'})
405 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_when_over_max'})
414 0 0 if scalar keys %{$$pms{'freemail_cache'}{'body'};}
417 0 0 if (defined $pms->{'freemail_skip_body'})
430 0 0 if (defined $pms->{'conf'}{'descriptions'}{$rulename})
434 0 0 if ($pms->{'main'}{'conf'}{'freemail_add_describe_email'})
445 0 0 unless $self->{'freemail_available'}
448 0 0 defined $regex ? :
450 0 0 unless (defined $header)
456 0 0 if (defined $regex)
458 0 0 unless ($rec)
467 0 0 unless (scalar @emails)
474 0 0 if ($self->_is_freemail($email, $pms))
475 0 0 if (defined $re) { }
476 0 0 unless $email =~ /$re/o
493 0 0 unless $self->{'freemail_available'}
496 0 0 defined $regex ? :
498 0 0 unless $self->_parse_body($pms)
501 0 0 if (defined $regex)
503 0 0 unless ($rec)
510 0 0 if (defined $re) { }
0 0 elsif (scalar keys %{$$pms{'freemail_cache'}{'body'};}) { }
512 0 0 if ($email =~ /$re/o)
532 0 0 unless $self->{'freemail_available'}
535 0 0 defined $regex ? :
538 0 0 if (defined $regex)
540 0 0 unless ($rec)
550 0 0 unless (scalar keys %from_addrs)
558 0 0 unless $self->_is_freemail($email, $pms)
559 0 0 if (defined $re) { }
560 0 0 unless $email =~ /$re/o
576 0 0 unless $self->{'freemail_available'}
581 0 0 if (defined $what) { }
582 0 0 if ($what ne 'replyto' and $what ne 'reply')
592 0 0 if ($pms->{'main'}{'conf'}{'freemail_skip_bulk_envfrom'})
594 0 0 if ($envfrom =~ /$skip_replyto_envfrom/)
605 0 0 if $from ne ''
606 0 0 if $replyto ne ''
608 0 0 if ($from_is_fm and $replyto_is_fm and $from ne $replyto)
614 0 0 if ($what eq 'replyto') { }
0 0 elsif ($what eq 'reply') { }
615 0 0 unless ($replyto_is_fm)
621 0 0 if ($replyto ne '' and not $replyto_is_fm) { }
0 0 elsif (not $from_is_fm) { }
630 0 0 $replyto_is_fm ? :
632 0 0 unless $self->_parse_body($pms)
635 0 0 if (scalar keys %{$$pms{'freemail_cache'}{'body'};})
636 0 0 $what eq 'replyto' ? :
639 0 0 if ($email ne $check)