On Tue, 09 Jun 2015 10:16:00 -0400
Kevin A. McGrail wrote:

> On 6/9/2015 9:55 AM, Reindl Harald wrote:
> >>
> >> I have two different mails with nearly identical rule hits. On with
> >> TO_NO_BRKTS_HTML_ONLY hit and one without.
> >> Can one please explain to me why message A gets
> >> TO_NO_BRKTS_HTML_ONLY and why message B didn't?
> >
> > HTML_ONLY means what it says - no plaintext alternate 
> I believe that's on the right track but slightly misleading. My quick 
> analysis is that the rule is really TO_NO_BRKTS & MIME_HTML_ONLY.  So
> if it's not a MIME multipart email but still in HTML only, it won't
> trigger.

It looks like it will:


sub check_for_mime_html_only {
  my ($self, $pms) = @_;

  my $ctype = $pms->get('Content-Type');
  return 1 if $ctype =~ m{^text/html}i;

  $self->_check_attachments($pms) unless exists
  $pms->{mime_body_html_count}; return ($pms->{mime_body_html_count} >
  0 && $pms->{mime_body_text_count} == 0);
}



Reply via email to