spamassassin stats fix

Orion Poplawski <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
I mistakenly assumed that sendmail mail queue id's started with "q".


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                   http://www.nwra.com

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel
logwatch-spamassassin.patch (text/x-patch, 765 B)
Index: scripts/services/spamassassin
===================================================================
--- scripts/services/spamassassin	(revision 125)
+++ scripts/services/spamassassin	(working copy)
@@ -108,9 +108,9 @@
          $msg{$msgid}->{"score"} = $score;
          $SpamRelay{$msg{$msgid}->{"relay"}}++;
       }
-   } elsif ( $ThisLine =~ m/^q\w+:/ ) {
+   } elsif ( $ThisLine =~ m/^\w+:/ ) {
       # Sendmail lines for statistics
-      if ( ($from, $msgid, $relay) = ($ThisLine =~ m/^q\w+: from=<(.*)>, .*, msgid=<(.*)>, .*, relay=(.*)/) ) {
+      if ( ($from, $msgid, $relay) = ($ThisLine =~ m/^\w+: from=<(.*)>, .*, msgid=<(.*)>, .*, relay=(.*)/) ) {
          $msg{$msgid}->{"from"} = $from;
          $msg{$msgid}->{"relay"} = $relay;
       }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.