[Bps-public-commit] rt-extension-spamfilter branch, update-for-rt5, updated. c6d9834b6bd6c783e2cfdb304217422fb32e0ff2
Dianne Skoll
dianne at bestpractical.com
Wed Dec 16 09:43:29 EST 2020
The branch, update-for-rt5 has been updated
via c6d9834b6bd6c783e2cfdb304217422fb32e0ff2 (commit)
via c3a837dffcecdc23255d1541f2bf21aa06473735 (commit)
from b5948c6743b4e64c96a07db338904890566b044a (commit)
Summary of changes:
lib/RT/Extension/SpamFilter.pm | 32 +++++++++++++++++++++++++++-----
static/css/SpamFilter.css | 6 ++++++
2 files changed, 33 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit c3a837dffcecdc23255d1541f2bf21aa06473735
Author: Dianne Skoll <dianne at bestpractical.com>
Date: Wed Dec 16 09:42:45 2020 -0500
Add some space around the "Not Spam", "Delete", etc action buttons.
diff --git a/static/css/SpamFilter.css b/static/css/SpamFilter.css
index ec7ed63..72d3258 100644
--- a/static/css/SpamFilter.css
+++ b/static/css/SpamFilter.css
@@ -2,6 +2,12 @@ div.actions {
text-align: center;
}
+div.actions button {
+ margin-top: 10px;
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
div.actions button a {
color: white;
}
commit c6d9834b6bd6c783e2cfdb304217422fb32e0ff2
Author: Dianne Skoll <dianne at bestpractical.com>
Date: Wed Dec 16 09:43:06 2020 -0500
Update POD to better describe configuration options and supported RT versions.a
diff --git a/lib/RT/Extension/SpamFilter.pm b/lib/RT/Extension/SpamFilter.pm
index 80a83d2..21df99f 100644
--- a/lib/RT/Extension/SpamFilter.pm
+++ b/lib/RT/Extension/SpamFilter.pm
@@ -48,7 +48,7 @@ Admins can manually handle those spams from /Tools/SpamFilter/List.html
=head1 RT VERSION
-Works with RT 4.0 and later
+Works with RT 4.0, 4.2, 4.4 and 5.0.
=head1 INSTALLATION
@@ -72,7 +72,20 @@ in your database.
If you are upgrading this module, check for upgrading instructions
in case changes need to be made to your database.
-=item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
+=item Set up spam filter rules (see L</"CONFIGURATION"> for details.)
+
+=item Clear your mason cache
+
+ rm -rf /opt/rt5/var/mason_data/obj
+
+=item Restart your webserver
+
+=back
+
+=head1 CONFIGURATION
+
+Edit your F</opt/rt5/etc/RT_SiteConfig.pm>; a sample configuration
+is shown below:
Plugin('RT::Extension::SpamFilter');
Set(@MailPlugins, 'SpamFilter', 'Auth::MailFrom');
@@ -91,15 +104,24 @@ in case changes need to be made to your database.
}
);
+The C<@SpamFilters> array is an array of hashes. Each hash
+must contain the following keys:
-=item Clear your mason cache
+=over
- rm -rf /opt/rt4/var/mason_data/obj
+=item C<Field> is either 'Body' or the name of an email header.
-=item Restart your webserver
+=item C<Regex> is a regular expression to apply to the email header named
+by C<Field> (or the email body if C<Field> is 'Body')
+
+=item C<Score> is a number indicating how many points to add to the
+spam score if the rule matches.
=back
+The C<$SpamFilterThreshold> is the score above which an incoming message
+is considered to be spam and placed in the spam list.
+
=head1 AUTHOR
Best Practical Solutions, LLC E<lt>modules at bestpractical.comE<gt>
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list