Not all rules are documented on the SpamAssassin wiki — there's way too many of them to do that. You can get automated efficacy data for MIME_HTML_MOSTLY
from the SpamAssassin Rule QA system, but not the definition.
The current definition for that rule (discounting translations) from rules/20_body_tests.cf is:
# … line 139 (quite likely to change)
body MIME_HTML_MOSTLY eval:check_mime_multipart_ratio('0.00','0.01')
describe MIME_HTML_MOSTLY Multipart message mostly text/html MIME
# … rules/50_scores.cf line 616 (also quite likely to change)
score MIME_HTML_MOSTLY 0.1
This is an eval rule, so you'll have to look at the perl code to see exactly what it's doing.
In lib/Mail/SpamAssassin/Plugin/MIMEEval.pm, you'll find:
# … line 214
sub check_mime_multipart_ratio {
my ($self, $pms, undef, $min, $max) = @_;
$self->_check_attachments($pms) unless exists $pms->{mime_checked_attachments};
return 0 unless exists $pms->{mime_multipart_ratio};
return ($pms->{mime_multipart_ratio} >= $min &&
$pms->{mime_multipart_ratio} < $max);
}
# … line 491
if (defined($text) && defined($html) && $html > 0) {
$pms->{mime_multipart_ratio} = ($text / $html);
}
This means the ratio of the text MIME part's length to the HTML MIME part's length must be equal to or above zero and also under 1%.
(Line numbers are from the current trunk repository, not a release. The code shouldn't change much, but the line numbers likely will, especially within the .cf
files.)