Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for perl-modules/Platon/Log/Mail/Postfix.pm between version 1.1 and 1.2

version 1.1, 2004/10/21 17:37:49 version 1.2, 2004/10/21 18:28:55
Line 10 
Line 10 
 # 2004-10-19 - created  # 2004-10-19 - created
 #  #
   
 # $Platon$  # $Platon: perl-modules/Platon/Log/Mail/Postfix.pm,v 1.1 2004/10/21 17:37:49 rajo Exp $
   
 package Platon::Log::Mail::Postfix;  package Platon::Log::Mail::Postfix;
   
Line 35  sub savelog($$;)
Line 35  sub savelog($$;)
   
         if ((   $xx->{created},                 $xx->{host},    $xx->{log_level},          if ((   $xx->{created},                 $xx->{host},    $xx->{log_level},
                         $xx->{process_name},    $xx->{pid},             $xx->{postfix_key},     $xx->{rest})                          $xx->{process_name},    $xx->{pid},             $xx->{postfix_key},     $xx->{rest})
                 = ($line =~ m#^(20[^ ]+) (\S+) \[(\S+)\] postfix/(\S+)\[(\d+)\]: (\S+) (.*)$#)) {                  = ($line =~ m/^(20[^ ]+) (\S+) \[(\S+)\] postfix\/(\S+)\[(\d+)\]: (\S+) (.*)$/o)) {
   
                 $xx->{postfix_key} =~ s/:$//g;                  $xx->{postfix_key} =~ s/:$//g;
                 # postfix_key: connect disconnect warning fatal lost timeout refreshing terminating lost                  # postfix_key: connect disconnect warning fatal lost timeout refreshing terminating lost
                 if ($xx->{postfix_key} eq 'connect' or $xx->{postfix_key} eq 'disconnect') {                  if ($xx->{postfix_key} eq 'connect' or $xx->{postfix_key} eq 'disconnect') {
                         if (($xx->{client_hostname}, $xx->{client_ip}) = ($xx->{rest} =~ s#from\s+(\S+)\[([\.0-9]+)\]$##o)) {                          if ($xx->{rest} =~ s#from\s+(\S+)\[([\.0-9]+)\]$##o) {
                                   ($xx->{client_hostname}, $xx->{client_ip}) = ($1, $2);
                                 return $self->_savelog($xx);                                  return $self->_savelog($xx);
                         }                          }
                         else {                          else {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top