<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Statistics</title>
   <meta http-equiv="Refresh" content="30">
</head>
<body>
   <h1>PolluStop Statistics<br>
   <span class=h2>%%domainname%%</span></h1>
   <!--%%INCLUDE "i_statuscodes.incl"-->
   <form action="statistics.page" method=post>

   <fieldset>
   <legend>Since last startup (%%LOCALDATETIME("^y-^N-^D ^H:^m:^s"):statistics.session.resettime%% - server time)</legend>
   <ul>
   <!--%%IF NOT(EQUALS(statistics.session.scannedcount AND "0"))-->
   <li>PolluStop processed <span class=tt>%%statistics.session.messagecount%%</span> unique messages, for a total of <span class=tt>%%statistics.session.totalsize%%</span>  kB (<span class=tt>%%statistics.session.avgmessagesize%%</span> kB per message).
   <li>Among the processed messages, <span class=tt>%%statistics.session.scannedcount%%</span> of them, sent to <span class=tt>%%statistics.session.uniquerecipients%%</span> unique local recipients, were scanned.
   <li>PolluStop took a total of <span class=tt>%%statistics.session.processtime%%</span> seconds to scan these messages (<span class=tt>%%statistics.session.avgprocesstime%%</span>ms per message).
   <li><span class=tt>%%statistics.session.whitelistedcount%%</span> messages matched the Whitelist.
   <li><span class=tt>%%statistics.session.blacklistedcount%%</span> messages matched the Blacklist.
   <li><span class=tt>%%statistics.session.directreplycount%%</span> messages were considered as Direct Replies.
   <li><span class=tt>%%statistics.session.spamcount%%</span> messages have been tagged as spam (<span class=tt>%%statistics.session.overallspamratio%%%</span> of scanned messages).
   <li>Counting one message per local recipient (for multiple-recipient messages), gives <span class=tt>%%statistics.session.recipientsplittedscancount%%</span> messages, of which <span class=tt>%%statistics.session.recipientsplittedspamcount%%</span> were spam (<span class=tt>%%statistics.session.splitspamratio%%%</span>).
   <li>A typical user received <span class=tt>%%statistics.session.mesgperlocaluser%%</span> messages. <span class=tt>%%statistics.session.spamperlocaluser%%</span> were spam, <span class=tt>%%statistics.session.goodperlocaluser%%</span> were good.
   <li>The average score given by PolluStop to a message was <span class=tt>%%statistics.session.avgscore%%</span>.
   <li>Spam got an average score of <span class=tt>%%statistics.session.avgspamscore%%</span>. Good mail got an average score of <span class=tt>%%statistics.session.avggoodscore%%</span>.
   <li><span class=tt>%%statistics.session.falsepositivecount%%</span> (<span class=tt>%%statistics.session.ratiofalsepos%%%</span>) messages have been reported as false positives, and<br><span class=tt>%%statistics.session.falsenegativecount%%</span> (<span class=tt>%%statistics.session.ratiofalseneg%%%</span>) as false negatives.
   <!--%%ELSE-->
   <li>Nothing interesting has happened yet
   <!--%%ENDIF-->
   </ul>
   </fieldset><br><br>

   <fieldset>
   <legend>Since last statistics reset (%%LOCALDATETIME("^y-^N-^D ^H:^m:^s"):statistics.totals.resettime%% - server time)</legend>
   <ul>
   <!--%%IF NOT(EQUALS(statistics.totals.scannedcount AND "0"))-->
   <li>PolluStop processed <span class=tt>%%statistics.totals.messagecount%%</span> unique messages, for a total of <span class=tt>%%statistics.totals.totalsize%%</span> kB (<span class=tt>%%statistics.totals.avgmessagesize%%</span> kB per message).<br>
   <li>Among the processed messages, <span class=tt>%%statistics.totals.scannedcount%%</span> of them were scanned.
   <li>PolluStop took a total of <span class=tt>%%statistics.totals.processtime%%</span> seconds to scan these messages (<span class=tt>%%statistics.totals.avgprocesstime%%</span>ms per message).
   <li><span class=tt>%%statistics.totals.whitelistedcount%%</span> messages matched the Whitelist.
   <li><span class=tt>%%statistics.totals.blacklistedcount%%</span> messages matched the Blacklist.
   <li><span class=tt>%%statistics.totals.directreplycount%%</span> messages were considered as Direct Replies.
   <li><span class=tt>%%statistics.totals.spamcount%%</span> messages have been tagged as spam (<span class=tt>%%statistics.totals.overallspamratio%%%</span> of scanned messages).
   <li>Counting one message per local recipient (for multiple-recipient messages), gives <span class=tt>%%statistics.totals.recipientsplittedscancount%%</span> messages, of which <span class=tt>%%statistics.totals.recipientsplittedspamcount%%</span> were spam (<span class=tt>%%statistics.totals.splitspamratio%%%</span>).
   <li>The average score given by PolluStop to a message was <span class=tt>%%statistics.totals.avgscore%%</span>.
   <li>Spam got an average score of <span class=tt>%%statistics.totals.avgspamscore%%</span>. Good mail got an average score of <span class=tt>%%statistics.totals.avggoodscore%%</span>.
   <li><span class=tt>%%statistics.totals.falsepositivecount%%</span> (<span class=tt>%%statistics.totals.ratiofalsepos%%%</span>) messages have been reported as false positive, and<br><span class=tt>%%statistics.totals.falsenegativecount%%</span> (<span class=tt>%%statistics.totals.ratiofalseneg%%%</span>) as false negative.
   <li>By weekday.<ul>
   <table style="border:1px solid black;" id=totalsday>
      <tr><td></td><!--%%FORALL day in weekdays--><td class=h>%%day[]%%</td><!--%%ENDFOR day--></tr>
      <tr><td valign=bottom>Messages</td><!--%%FORALL day in statistics.totals.messagecountbyday--><td class=tt><img src="point.gif" height="%%day[].norm%%" title="%%day[].value%%" class=graph></td><!--%%ENDFOR day--></tr>
      <tr><td valign=bottom>Scanned</td><!--%%FORALL day in statistics.totals.scannedcountbyday--><td class=tt><img src="point.gif" height="%%day[].norm%%" title="%%day[].value%%" class=graph></td><!--%%ENDFOR day--></tr>
      <tr><td valign=bottom>Spam</td><!--%%FORALL day in statistics.totals.spamcountbyday--><td class=tt><img src="point.gif" height="%%day[].norm%%" title="%%day[].value%%" class=graph></td><!--%%ENDFOR day--></tr>
   </table></ul>
   <li>By time of day.<ul>
   <table style="border:1px solid black;" id=totalshour>
      <tr><td></td><td class=h>00</td><td colspan=5></td><td class=h>06</td><td colspan=5></td><td class=h>12</td><td colspan=5></td><td class=h>18</td><td colspan=5></td></tr>
      <tr><td valign=bottom>Messages</td><!--%%FORALL hour in statistics.totals.messagecountbyhour--><td class=tt><img src="point.gif" height="%%hour[].norm%%" title="%%hour[].value%%" class=graph></td><!--%%ENDFOR hour--></tr>
      <tr><td valign=bottom>Scanned</td><!--%%FORALL hour in statistics.totals.scannedcountbyhour--><td class=tt><img src="point.gif" height="%%hour[].norm%%" title="%%hour[].value%%" class=graph></td><!--%%ENDFOR hour--></tr>
      <tr><td valign=bottom>Spam</td><!--%%FORALL hour in statistics.totals.spamcountbyhour--><td class=tt><img src="point.gif" height="%%hour[].norm%%" title="%%hour[].value%%" class=graph></td><!--%%ENDFOR hour--></tr>
   </table></ul>
   <!--%%ELSE-->
   <li>Nothing interesting happened yet
   <!--%%ENDIF-->
   </ul>
   </fieldset><br><br>
   <input type=submit class=btn name="Refresh" value="Refresh"><br><br>
   <fieldset><legend>Reset all statistics</legend>
   <span class=explain>This will erase all current and saved statistics. Once deleted the data is not recoverable.
   <I>Tip: you can backup file pollustop.statistics, which is stored in [pollustop]/data.
   However, restoring this file will require a restart of the filter.</i></span><br><br>
   <input type=submit class=btn name="reset" value="Reset statistics">&nbsp<input type=checkbox name="resetconfirm" value=1 id="ResetConfirm"><label for=ResetConfirm>I am sure.</label><br>
   </fieldset><br><br>
   </form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
