--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/modules Fri Jan 22 17:11:08 2010 +0100
@@ -0,0 +1,1 @@
+libtimedate-perl
--- a/postgrep Fri Jan 22 17:10:32 2010 +0100
+++ b/postgrep Fri Jan 22 17:11:08 2010 +0100
@@ -5,7 +5,7 @@
use warnings;
use Date::Parse;
use Memoize;
-use Smart::Comments;
+use if $ENV{DEBUG} => "Smart::Comments";
die "Usage: $0 pattern [file]…\n" if !@ARGV;
@@ -21,12 +21,12 @@
if (
!/^(?<date>.{15})
\s(?<host>\S+)
- \s(?<service>\S+):
+ \s(?<service>postfix\/\S+):
\s(?<pfid>[[:xdigit:]]+):
\s(?<rest>.*)/x
)
{
- print "$_\n" if /$pattern/i;
+ print "$_\n" if / postfix\// && /$pattern/i;
next;
}