ALT Linux repos
S: | 4.0.0-alt1.1 |
5.0: | 3.2.5-alt1 |
4.1: | 3.2.5-alt1.M41.2 |
4.0: | 3.2.1-alt1 |
+updates: | 3.2.1-alt1 |
3.0: | 3.0.4-alt1 |
+backports: | 3.1.3-alt0.M30 |
Group :: Networking/Mail
RPM: spamassassin
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: spamassassin-deb-90_pod_cleanup.patch
Download
Download
Index: spamassassin/lib/Mail/SpamAssassin/Conf.pm
===================================================================
--- spamassassin.orig/lib/Mail/SpamAssassin/Conf.pm
+++ spamassassin/lib/Mail/SpamAssassin/Conf.pm
@@ -3857,7 +3857,7 @@ This option gives the password used by t
Whether to call the services_authorized_for_username plugin hook in BayesSQL.
If the hook does not determine that the user is allowed to use bayes or is
-invalid then then database will not be initialized.
+invalid then the database will not be initialized.
NOTE: By default the user is considered invalid until a plugin returns
a true value. If you enable this, but do not have a proper plugin
Index: spamassassin/lib/Mail/SpamAssassin/Plugin/MIMEEval.pm
===================================================================
--- spamassassin.orig/lib/Mail/SpamAssassin/Plugin/MIMEEval.pm
+++ spamassassin/lib/Mail/SpamAssassin/Plugin/MIMEEval.pm
@@ -17,7 +17,7 @@
=head1 NAME
-MIMEEval - perform various tests against MIME structure and body
+Mail::SpamAssassin::Plugin::MIMEEval - perform various tests against MIME structure and body
=head1 SYNOPSIS
@@ -177,6 +177,31 @@ sub check_for_faraway_charset {
0;
}
+=item check_for_mime
+
+Check for various MIME properties.
+
+Use in rules such as:
+
+ rawbody MIME_BASE64 eval:check_for_mime('mime_base64_count')
+ describe MIME_BASE64 Includes a base64 attachment
+
+ mime_base64_count
+ mime_base64_encoded_text
+ mime_body_html_count
+ mime_body_text_count
+ mime_faraway_charset
+ mime_missing_boundary
+ mime_multipart_alternative
+ mime_multipart_ratio
+ mime_qp_count
+ mime_qp_long_line
+ mime_qp_ratio
+ mime_ascii_text_illegal
+ mime_text_unicode_ratio
+
+=cut
+
sub check_for_mime {
my ($self, $pms, undef, $test) = @_;
@@ -197,7 +222,12 @@ sub check_for_mime_html {
return ($pms->{mime_body_html_count} > 0);
}
-# HTML without some other type of MIME text part
+=item check_for_mime_html_only
+
+Check for messages containing only text/html body parts
+
+=cut
+
sub check_for_mime_html_only {
my ($self, $pms) = @_;