NetBSD/gnu/dist/postfix/pflogsumm-conn-delays-dsn-patch
2006-07-19 01:16:27 +00:00

15 lines
617 B
Plaintext

This patch adds support for logfiles with conn_use, delays, and dsn
attributes.
--- pflogsumm.pl.orig 2005-04-09 12:54:44.000000000 +0200
+++ pflogsumm.pl 2005-11-07 21:50:05.483199193 +0100
@@ -696,7 +696,7 @@
}
}
elsif((($addr, $relay, $delay, $status, $toRmdr) = $logRmdr =~
- /to=<([^>]*)>, (?:orig_to=<[^>]*>, )?relay=([^,]+), delay=([^,]+), status=(\S+)(.*)$/o) >= 4)
+ /to=<([^>]*)>, (?:orig_to=<[^>]*>, )?relay=([^,]+), (?:conn_use=[^,]+, )?delay=([^,]+), (?:delays=[^,]+, )?(?:dsn=[^,]+, )?status=(\S+)(.*)$/o) >= 4)
{
if($opts{'m'} && $addr =~ /^(.*!)*([^!]+)!([^!@]+)@([^\.]+)$/o) {