[rt-users] RT+SpamAssassin+Procmail problem
Darren Nickerson
darren at dazza.org
Tue Feb 25 15:32:20 EST 2003
Folks,
Here's a possible alternative for those of you who have SpamAssassin running
and injecting X-Spam-Status headers without procmail. I just hacked
rt-mailgate to inject mail into my 'spam' queue directly. (see below)
Phil, do you work for BestPractical now? Your .sig caught my attention ;-)
-Darren
--- rt-mailgate.orig Sat Feb 22 22:14:05 2003
+++ rt-mailgate Sun Feb 23 13:58:15 2003
@@ -56,6 +56,7 @@
my ($Verbose, $ReturnTid, $Debug);
my ($From, $TicketId, $Subject,$SquelchReplies);
my ($status, $msg);
+my ($SpamHeader,$spam);
# {{{ parse commandline
@@ -113,6 +114,10 @@
$Subject = $head->get('Subject') || "[no subject]";
chomp $Subject;
+#Check SPAM status
+$SpamHeader = $head->get('X-Spam-Status') || "No";
+$Queue = "spam" if ($SpamHeader =~ /Yes/s);
+
# Get the ticket ID unless it's already set
$TicketId = ParseTicketId($Subject) unless ($TicketId);
More information about the rt-users
mailing list