[Mimedefang] [PATCH] make SpamAssassin version available to MIMEDefang

Kees Cook kees at osdl.org
Wed Aug 27 14:24:45 EDT 2003


Here's a patch to hand the SA version off to MIMEDefang, in case you want 
to do anything with it (like add it to headers).  I find the SA version 
very handy when I review tagged spam later, and I need to see which 
version of the SA rules we were using.  We use:

version_tag     osdl$Revision: 1.10 $

in our spamassassin config file.

Patch is attached...

-- 
Kees Cook
Open Souce Development Lab
kees at osdl.org
-------------- next part --------------
--- orig/mimedefang.pl	2003-08-27 11:07:02.000000000 -0700
+++ mimedefang.pl	2003-08-27 11:06:26.000000000 -0700
@@ -5173,6 +5173,7 @@
 #       Number of hits required before SA conciders a message spam
 #       Comma separated list of symbolic test names that were triggered
 #       A 'report' string, detailing tests that failed and their weights
+#       The SpamAssassin version string
 # %DESCRIPTION:
 #  Scans message using SpamAssassin (http://www.spamassassin.org)
 #***********************************************************************
@@ -5185,10 +5186,11 @@
     my $req = $status->get_required_hits();
     my $tests = $status->get_names_of_tests_hit();
     my $report = $status->get_report();
+    my $version = $SASpamTester->Version();
 
     $status->finish();
 
-    return ($hits, $req, $tests, $report);
+    return ($hits, $req, $tests, $report, $version);
 }
 
 #***********************************************************************


More information about the MIMEDefang mailing list