Changeset 671

Show
Ignore:
Timestamp:
01/25/05 21:38:46 (7 years ago)
Author:
jimmyo
Message:

Make generic/postfix_mailstats catch more formats (Deb#292110).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    • Property cvs2svn:cvs-rev changed from 1.275 to 1.276
    r670 r671  
    1919  * Plugins: Improved graph_title of generic/postfix_* (Deb#292083). 
    2020  * Plugins: Turn on graph_scale for generic/postfix_mailvolume. 
     21  * Plugins: Make generic/postfix_mailstats catch more formats (Deb#292110). 
    2122  * Installation: Make the single python plugin use @@PYTHON@@ again. 
    2223  * Docs: Documented minimum requirements for use of graph_sums (SF#1109040). 
  • trunk/node/node.d/postfix_mailstats.in

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r667 r671  
    1616# 
    1717# $Log$ 
     18# Revision 1.9  2005/01/25 20:38:46  jimmyo 
     19# Make generic/postfix_mailstats catch more formats (Deb#292110). 
     20# 
    1821# Revision 1.8  2005/01/25 20:23:36  jimmyo 
    1922# Improved graph_title of generic/postfix_* (Deb#292083). 
     
    226229            $delivered++; 
    227230        }  
    228         elsif ($line =~ /reject:/) 
    229         { 
    230             my @codes = split (/\s+/, $line); 
    231             $rejects->{$codes[13]} ++; 
     231        elsif ($line =~ /reject: \S+ \S+ \S+ (\S+)/) 
     232        { 
     233            $rejects->{$1} ++; 
    232234        } 
    233235    }