packages: logwatch/logwatch-exim.patch (NEW) - new

adamg adamg at pld-linux.org
Wed Dec 7 19:32:57 CET 2011


Author: adamg                        Date: Wed Dec  7 18:32:57 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/logwatch:
   logwatch-exim.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/logwatch/logwatch-exim.patch
diff -u /dev/null packages/logwatch/logwatch-exim.patch:1.1
--- /dev/null	Wed Dec  7 19:32:57 2011
+++ packages/logwatch/logwatch-exim.patch	Wed Dec  7 19:32:52 2011
@@ -0,0 +1,18 @@
+handle "date time [pid] msgid message" format
+--- logwatch-7.4.0/scripts/services/exim~	2011-12-07 19:08:04.552916551 +0100
++++ logwatch-7.4.0/scripts/services/exim	2011-12-07 19:23:53.546225395 +0100
+@@ -276,6 +277,14 @@
+       # Count of individual Message Lines, used for sort
+     $licze++;         # Dodaje taki licznik aby potem przy wypisaniu posortowac po nim, bo wypisywal nie po kolei
+     $mmsg{$mid}{$licze.$mrest} = "$mdate $mtime";
++
++   }
++   elsif ( $ThisLine =~ /^\d+\-\d+\-\d+\s\d+\:\d+\:\d+\s(\[\d+\])?\s(\+\d+\s)?\w+\-\w+\-\w+\s/ ) { # inne wiadomosci przesylane przez EXIMA
++    # Collect Message ID specific notes...
++    ($mdate,$mtime,$mpid,$mid,$mrest) = ($ThisLine =~ /^(\d+\-\d+\-\d+)\s(\d+\:\d+\:\d+)\s(\[\d+\])?\s(?:\+\d+\s)?(\w+\-\w+\-\w+)(.+)/);
++      # Count of individual Message Lines, used for sort
++    $licze++;         # Dodaje taki licznik aby potem przy wypisaniu posortowac po nim, bo wypisywal nie po kolei
++    $mmsg{$mid}{$licze.$mrest} = "$mdate $mtime";
+ 
+    }
+    else
================================================================


More information about the pld-cvs-commit mailing list