My favorites | Sign in
Project Home Downloads Wiki Source
Checkout   Browse   Changes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/ksh

SPAMPOINTS_OPTS="DEF:avg=spampoints.rrd:spampoints:AVERAGE DEF:max=spampoints.rrd:spampoints:MAX LINE2:avg#3355CC:Avg LINE1:max#00AA44:Max --imginfo"

#Oops, somehow i got the numbers backwards?
SPAMCOUNT_OPTS="DEF:spam=spamornot.rrd:spam:MAX DEF:notspam=spamornot.rrd:notspam:MAX LINE2:notspam#3355CC:Spam LINE2:spam#00AA44:Ham --imginfo"

IMGINFO='<img src="/~psionic/%s">'

cd /u9/psionic/Mail/

PATH=/usr/local/rrdtool-1.0.39/bin:/bin:/usr/bin:/usr/local/bin
HTML=/u9/psionic/public_html/spam.php

echo '<? include("header.php"); ?>' > $HTML
echo >> $HTML
echo '<br>' >> $HTML
echo '<table border="0">' >> $HTML
echo '<tr><td>' >> $HTML


rrdtool graph ../public_html/spam-all.png --start `cat spampoints.rrd.creation` --title "Spam Points - Since Beginning" ${SPAMPOINTS_OPTS} "${IMGINFO}" | grep -v '^495' >> $HTML

echo '</td><td>&nbsp;&nbsp;&nbsp;</td><td valign="top">Spam Points - These are totals of how many points spamassassin accumulates per mail over 5 minute intervals. </td></tr>' >> $HTML
echo '<tr><td>' >> $HTML

rrdtool graph ../public_html/spam-daily.png --title "Spam Points / Past 24 Hours" ${SPAMPOINTS_OPTS} "${IMGINFO}" | grep -v '^495' >> $HTML

echo '</td></tr>' >> $HTML
echo '<tr><td>' >> $HTML

rrdtool graph ../public_html/spam-counts.png --start `cat spamornot.rrd.creation` --title "Spam vs Ham / Since Beginning" ${SPAMCOUNT_OPTS} "${IMGINFO}" | grep -v '^495' >> $HTML

echo '</td><td>&nbsp;&nbsp;&nbsp;</td><td valign="top">Spam vs NotSpam - Totals oof spam and not spam. Currently, spam is defined as having 5 or more points.</td></tr>' >> $HTML
echo '<tr><td>' >> $HTML

rrdtool graph ../public_html/spam-counts-daily.png --title "Spam vs Ham / Past 24 Hours" ${SPAMCOUNT_OPTS} "${IMGINFO}" | grep -v '^495' >> $HTML

echo '</td></tr>' >> $HTML
echo '</table>' >> $HTML
echo >> $HTML

echo '<br>

This page was produced by a silly little shell script called <a href="/~psionic/
projects/mailgraph_generate">mailgraph_generate</a> and a cronjob.

<br>
<br>' >> $HTML


echo '<? include("footer.php"); ?>' >> $HTML

Change log

r1306 by psionic on Mar 16, 2007   Diff
mv /trunk/binutils/ -> /binutils/
Go to: 
Project members, sign in to write a code review

Older revisions

r446 by psionic on Aug 9, 2003   Diff
jordan doesn't want to lose his
precious bin files... kthx
All revisions of this file

File info

Size: 2065 bytes, 52 lines

File properties

svn:keywords
Author Date Id Revision
svn:executable
*
svn:eol-style
native
Powered by Google Project Hosting