Sun, 19 Apr 2009 14:07:25 +0200
Import package vendor original specs for necessary manipulations.
michael@171 | 1 | Index: mailgraph.cgi |
michael@171 | 2 | --- mailgraph.cgi.orig 2007-08-29 11:06:01 +0200 |
michael@171 | 3 | +++ mailgraph.cgi 2007-08-29 19:05:41 +0200 |
michael@171 | 4 | @@ -160,7 +160,7 @@ |
michael@171 | 5 | <html> |
michael@171 | 6 | <head> |
michael@171 | 7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
michael@171 | 8 | -<title>Mail statistics for $host</title> |
michael@171 | 9 | +<title>Postfix Mail statistics for $host</title> |
michael@171 | 10 | <meta http-equiv="Refresh" content="300" /> |
michael@171 | 11 | <meta http-equiv="Pragma" content="no-cache" /> |
michael@171 | 12 | <link rel="stylesheet" href="mailgraph.css" type="text/css" /> |
michael@171 | 13 | @@ -168,7 +168,7 @@ |
michael@171 | 14 | <body> |
michael@171 | 15 | HEADER |
michael@171 | 16 | |
michael@171 | 17 | - print "<h1>Mail statistics for $host</h1>\n"; |
michael@171 | 18 | + print "<h1>Postfix Mail statistics for $host</h1>\n"; |
michael@171 | 19 | |
michael@171 | 20 | print "<ul id=\"jump\">\n"; |
michael@171 | 21 | for my $n (0..$#graphs) { |
michael@171 | 22 | @@ -183,13 +183,6 @@ |
michael@171 | 23 | } |
michael@171 | 24 | |
michael@171 | 25 | print <<FOOTER; |
michael@171 | 26 | -<hr/> |
michael@171 | 27 | -<table><tr><td> |
michael@171 | 28 | -<a href="http://mailgraph.schweikert.ch/">Mailgraph</a> $VERSION |
michael@171 | 29 | -by <a href="http://david.schweikert.ch/">David Schweikert</a></td> |
michael@171 | 30 | -<td align="right"> |
michael@171 | 31 | -<a href="http://oss.oetiker.ch/rrdtool/"><img src="http://oss.oetiker.ch/rrdtool/.pics/rrdtool.gif" alt="" width="120" height="34"/></a> |
michael@171 | 32 | -</td></tr></table> |
michael@171 | 33 | </body></html> |
michael@171 | 34 | FOOTER |
michael@171 | 35 | } |
michael@171 | 36 | Index: mailgraph.pl |
michael@171 | 37 | --- mailgraph.pl.orig 2007-08-29 11:06:01 +0200 |
michael@171 | 38 | +++ mailgraph.pl 2007-08-29 19:03:59 +0200 |
michael@171 | 39 | @@ -211,6 +211,8 @@ |
michael@171 | 40 | \s |
michael@171 | 41 | ([-\w\.\@:]+) # host -- 6 |
michael@171 | 42 | \s+ |
michael@171 | 43 | + <[^>]+> # OSSP fsl log level |
michael@171 | 44 | + \s+ |
michael@171 | 45 | (?:\[LOG_[A-Z]+\]\s+)? # FreeBSD |
michael@171 | 46 | (.*) # text -- 7 |
michael@171 | 47 | $/x or do |