postfix-mailgraph/postfix-mailgraph.patch

changeset 171
b72f2be1f619
child 199
bf21249327af
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/postfix-mailgraph/postfix-mailgraph.patch	Sun Apr 19 14:07:25 2009 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +Index: mailgraph.cgi
     1.5 +--- mailgraph.cgi.orig	2007-08-29 11:06:01 +0200
     1.6 ++++ mailgraph.cgi	2007-08-29 19:05:41 +0200
     1.7 +@@ -160,7 +160,7 @@
     1.8 + <html>
     1.9 + <head>
    1.10 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1.11 +-<title>Mail statistics for $host</title>
    1.12 ++<title>Postfix Mail statistics for $host</title>
    1.13 + <meta http-equiv="Refresh" content="300" />
    1.14 + <meta http-equiv="Pragma" content="no-cache" />
    1.15 + <link rel="stylesheet" href="mailgraph.css" type="text/css" />
    1.16 +@@ -168,7 +168,7 @@
    1.17 + <body>
    1.18 + HEADER
    1.19 + 
    1.20 +-	print "<h1>Mail statistics for $host</h1>\n";
    1.21 ++	print "<h1>Postfix Mail statistics for $host</h1>\n";
    1.22 + 
    1.23 + 	print "<ul id=\"jump\">\n";
    1.24 + 	for my $n (0..$#graphs) {
    1.25 +@@ -183,13 +183,6 @@
    1.26 + 	}
    1.27 + 
    1.28 + 	print <<FOOTER;
    1.29 +-<hr/>
    1.30 +-<table><tr><td>
    1.31 +-<a href="http://mailgraph.schweikert.ch/">Mailgraph</a> $VERSION
    1.32 +-by <a href="http://david.schweikert.ch/">David Schweikert</a></td>
    1.33 +-<td align="right">
    1.34 +-<a href="http://oss.oetiker.ch/rrdtool/"><img src="http://oss.oetiker.ch/rrdtool/.pics/rrdtool.gif" alt="" width="120" height="34"/></a>
    1.35 +-</td></tr></table>
    1.36 + </body></html>
    1.37 + FOOTER
    1.38 + }
    1.39 +Index: mailgraph.pl
    1.40 +--- mailgraph.pl.orig	2007-08-29 11:06:01 +0200
    1.41 ++++ mailgraph.pl	2007-08-29 19:03:59 +0200
    1.42 +@@ -211,6 +211,8 @@
    1.43 +             \s
    1.44 +             ([-\w\.\@:]+)        # host  -- 6
    1.45 +             \s+
    1.46 ++            <[^>]+>              # OSSP fsl log level
    1.47 ++            \s+
    1.48 +             (?:\[LOG_[A-Z]+\]\s+)?  # FreeBSD
    1.49 +             (.*)                 # text  -- 7
    1.50 +             $/x or do

mercurial