SF.net SVN: logwatch:[126] scripts/services/spamassassin

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 126
          http://logwatch.svn.sourceforge.net/logwatch/?rev=126&view=rev
Author:   stefjakobs
Date:     2013-01-02 19:31:04 +0000 (Wed, 02 Jan 2013)
Log Message:
-----------
fix regex for sendmail's mail queue ids (Thanks: Orion Poplawski)

Modified Paths:
--------------
    scripts/services/spamassassin

Modified: scripts/services/spamassassin
===================================================================
--- scripts/services/spamassassin	2012-12-30 16:24:53 UTC (rev 125)
+++ scripts/services/spamassassin	2013-01-02 19:31:04 UTC (rev 126)
@@ -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;
       }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
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
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.