You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.9 KiB

Index: mailgraph.cgi
--- mailgraph.cgi.orig 2004-07-11 17:57:06 +0200
+++ mailgraph.cgi 2004-07-13 20:02:25 +0200
@@ -160,14 +160,14 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
-<TITLE>Mail Statistics for $host</TITLE>
+<TITLE>Postfix Mail Statistics for $host</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HEAD>
-<BODY BGCOLOR="#FFFFFF">
+<BODY BGCOLOR="#DDDDDD">
HEADER
- print "<H1>Mail Statistics for $host</H1>\n";
+ print "<H1>Postfix Mail Statistics for $host</H1>\n";
for my $n (0..$#graphs) {
print '<div style="background: #dddddd; width: 632px">';
print "<H2>$graphs[$n]{title}</H2>\n";
@@ -175,17 +175,6 @@
print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}.png\" ALT=\"mailgraph\">\n";
print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}_err.png\" ALT=\"mailgraph\">\n";
}
-
- print <<FOOTER;
-<hr width="630" align="left" size="1" noshade>
-<table border="0" width="630" cellpadding="0" cellspacing="0" background="#dddddd"><tr><td align="left">
-<A href="http://people.ee.ethz.ch/~dws/software/mailgraph">Mailgraph</A> $VERSION
-by <A href="http://people.ee.ethz.ch/~dws/">David Schweikert</A></td>
-<td ALIGN="right">
-<a HREF="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/"><img border="0" src="http://people.ethz.ch/~oetiker/webtools/rrdtool/.pics/rrdtool.gif" alt="" width="120" height="34"></a>
-</td></tr></table>
-</BODY></HTML>
-FOOTER
}
sub send_image($)
Index: mailgraph.pl
--- mailgraph.pl.orig 2004-07-11 17:46:56 +0200
+++ mailgraph.pl 2004-07-13 20:01:29 +0200
@@ -140,6 +140,8 @@
\s
([-\w\.]+) # host -- 6
\s+
+ <[^>]+> # OSSP fsl log level
+ \s+
(.*) # text -- 7
$/x or do
{