postfix-mailgraph.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Index: mailgraph.cgi
  2. --- mailgraph.cgi.orig 2004-07-11 17:57:06 +0200
  3. +++ mailgraph.cgi 2004-07-13 20:02:25 +0200
  4. @@ -160,14 +160,14 @@
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  6. <HTML>
  7. <HEAD>
  8. -<TITLE>Mail Statistics for $host</TITLE>
  9. +<TITLE>Postfix Mail Statistics for $host</TITLE>
  10. <META HTTP-EQUIV="Refresh" CONTENT="300">
  11. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  12. </HEAD>
  13. -<BODY BGCOLOR="#FFFFFF">
  14. +<BODY BGCOLOR="#DDDDDD">
  15. HEADER
  16. - print "<H1>Mail Statistics for $host</H1>\n";
  17. + print "<H1>Postfix Mail Statistics for $host</H1>\n";
  18. for my $n (0..$#graphs) {
  19. print '<div style="background: #dddddd; width: 632px">';
  20. print "<H2>$graphs[$n]{title}</H2>\n";
  21. @@ -175,17 +175,6 @@
  22. print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}.png\" ALT=\"mailgraph\">\n";
  23. print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}_err.png\" ALT=\"mailgraph\">\n";
  24. }
  25. -
  26. - print <<FOOTER;
  27. -<hr width="630" align="left" size="1" noshade>
  28. -<table border="0" width="630" cellpadding="0" cellspacing="0" background="#dddddd"><tr><td align="left">
  29. -<A href="http://people.ee.ethz.ch/~dws/software/mailgraph">Mailgraph</A> $VERSION
  30. -by <A href="http://people.ee.ethz.ch/~dws/">David Schweikert</A></td>
  31. -<td ALIGN="right">
  32. -<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>
  33. -</td></tr></table>
  34. -</BODY></HTML>
  35. -FOOTER
  36. }
  37. sub send_image($)
  38. Index: mailgraph.pl
  39. --- mailgraph.pl.orig 2004-07-11 17:46:56 +0200
  40. +++ mailgraph.pl 2004-07-13 20:01:29 +0200
  41. @@ -140,6 +140,8 @@
  42. \s
  43. ([-\w\.]+) # host -- 6
  44. \s+
  45. + <[^>]+> # OSSP fsl log level
  46. + \s+
  47. (.*) # text -- 7
  48. $/x or do
  49. {