Subject: Spam Report for ||to|| (||plus(pending_count_new,held_count_all)|| messages)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8

<html>
<style>
	body {font-family:arial;}
	body {font-size:12px;}
	table {font-size:12px;}
	.link { color:blue !important; text-decoration:none; }
	.link:hover { text-decoration:underline !important; }
	.pad {padding:3px;}
	._bl {border-left:1px solid black;}	.bl2 {border-left:1px solid #aaa;}
	._br {border-right:1px solid black;} ._br2 {border-right:1px solid #aaa;}
	.bt {border-top:1px solid black;}	._bt2 {border-top:1px solid #aaa;}
	.bb {border-bottom:1px solid black;}._bb2 {border-bottom:1px solid #aaa;}
	.btb {border-top:1px solid black;border-bottom:1px solid black;}
	.g {color:#555;}
	.spam_high{background:pink;}
	.spam_moderate{background:#dadaf5;}
	.spam_low{background:#daf5da;}	
	th {text-align:left;background:#DDD;font-weight:normal;}
	td {text-align:left;}
	.c {text-align:center;}
	.cc {margin:auto;}
	.r {text-align:right;}
	.nw {white-space:nowrap;}
</style>
<body>
This message is an automatic status message summarizing messages detained as suspected spam and a log of important serverside email processing events.
To disable or configure this message login to the <a href="||web_encode(url)||">user.cgi interface</a> and click on the "Log" link. Or "Spam" link to adjust settings.
||ifdef||current_settings||
<p><br>
Current spam settings: <b>||current_settings||</b>

||endif||
<br><br>

||if(not(istrue(spam_held_only)))||

||ifdef||pending_show_all||
note: Status email configured to list all messages in spam folder (configure in user.cgi preferences)
<br>
||endif||


<center>
<table class="sml" style="border-collapse:collapse; border:1px solid black;width:90%;">
<tbody>
<tr>
	<td colspan="5" style="background:#BCD8FD;">
		<table style="width:100%"><tbody>
		  <tr><td class="p3b" style="white-space:nowrap;"><b>||pending_count_new|| new suspected spam</b> (Total messages: ||pending_count_all||)</td>
		  	  <td width="50%">&nbsp;</td>
		  	  <td class="p3b" style="white-space:nowrap;">||period|| day(s) to ||localdate||end||</td></tr>
		</tbody>
		</table>
	</td></tr>
||begin_list_pending||
||ifequal||pending_idx||0||
<tr>
	<th class="pad btb bl br2 c" valign=top><b>Action links</b></td>
	<th class="pad btb bl2 br2 c" ><b>Score</b></td>
	<th class="pad btb bl2"><b>Message details</b></th>
	<th class="pad btb c"><b>Size</b></th>
	<th class="pad btb br c"><b>Expiry</b></th></tr>
||define||done_some||true||
||endif||

<tr>
	<td class="bb  pad bl bt br2 c nw" >
		<table class="cc"><tr>
			<td class="c nw" valign="middle"><a target="_links" href="||pending_link_release||" class="link">Deliver <br> to INBOX</a>
			<td class="c nw" valign="middle"> | <a target="_links" href="||pending_link_view||&show_raw=true" class="link">View</a>
			<td class="c nw" valign="middle"> | <a target="_links" href="||pending_link_delete||" class="link">Delete</a>
# 			Report as spam and add sender to blocklist
			<td class="c nw" valign="middle"> | <a target="_links" href="||pending_link_block||" class="link">Block</a>
# 			Just report as spam but do not add address to the blocked senders list
#			<td class="c nw" valign="middle"> | <a target="_links" href="||pending_link_spam||" class="link">Spam</a>
		</table>
	</td>
	
	||define||color||spam_low||
	||if(greater_than(pending_score,7))|| ||define||color||spam_moderate|| ||endif|| 
	||if(greater_than(pending_score,12))|| ||define||color||spam_high|| ||endif|| 
	
	<td class="btb  bl2 br2 c ||color||">||pending_score||</td>
	<td class="btb  p3t bl2 h">
	  <table>
		<tr>
		  <td class="r" valign=top>Subject:</td><td><b>||utf8_validate(pending_subject_utf8)||</b></td>
		<tr>
		  <td class="r" valign=top>From:</td><td><span class="g"><b>||pending_from_address||</b> ||if(not(blank(pending_from_name)))|| (||pending_from_name||) ||endif||</span></td>
	  
	   ||if(and(not(blank(pending_to)),not(istrue(just_me))))||
		<tr>
		  <td class="r" valign=top>To:</td><td><span class="g">||web_encode(pending_to)||</span></td>
	   ||endif||

	  </table>
	  ||if(and(not(blank(pending_reply_to_address)),not(equal(pending_from_address,pending_reply_to_address))))||
		<div>Reply-To:<span class="g"><b>||pending_reply_to_address||</b> ||if(not(blank(pending_reply_to_name)))|| (||pending_reply_to_name||) ||endif||</span></div>
	  ||endif||
	  ||if(and(not(blank(pending_return_path_address)),not(equal(pending_from_address,pending_return_path_address))))||
		<div>Return-Path:<span class="g"><b>||pending_return_path_address||</b></span></div>
	  ||endif||
# Remove comment characters below (#) to add senders reverse loopkup / IP address
#		<tr>
#		  <td class="r nw" valign=top>IP:</td><td><span class="g"><a href="http://cqcounter.com/whois/?query=||pending_ip||" class="link nw" >||web_encode_hyphen(pending_reverse)||</a></span></td>		
	</td>
	<td class="btb pad  p3b g r nw">||bytes_basic(pending_size)||</td>
	<td class="btb pad  p3b br g c nw">||pending_expire|| days </td>
  </tr>

||end_list_pending||

||ifdef||done_some||
<tr>
	<td class="pad gg" colspan=5><a href="||pending_link_purge||" class="link">Purge</a> - Purge all detained messages in spam store older than this reporting email (deletes up to ||pending_count_all|| messages)</div>
	</tr>
# Remove comment characters below (#) to add report all as spam link
#<tr>
#	<td class="pad gg" colspan=5><a href="||pending_link_spamall||" class="link">Spam All</a> - Report all detained messages as spam and purge spam store (deletes up to ||pending_count_all|| messages)</div>
#	</tr>
||else||
# Dummy row to make sure safari renders the email correctly
<tr class="qq">
	<td class="qq">&nbsp;</td><td class="qq">&nbsp;</td><td class="qq">&nbsp;</td><td class="qq">&nbsp;</td><td class="qq">&nbsp;</td><td class="qq">&nbsp;</td><td class="qq">&nbsp;</td>
	</tr>
||endif||
</tbody>
</table>
  ||if(greater_than(held_count_all,(0)))||
  <br>
  <div style="background:pink;width:70%;border:1px solid #777;">
  Warning: ||held_count_all|| additional messages are being held in surgemail <b><i>"Spam Held"</i></b> store. <br>
  This is no longer the recommended optimal method of spam prevention.
  </div>
  For more info <a href="http://netwinsite.com/surgeweb/help/spam_q.htm" class="link">see online help</a>.<br>
  ||endif||
||else||
<center>
 <div style="background:pink;width:70%;border:1px solid #777;">
  Warning: You are using surgemail spam held for storing suspected spam. This is no longer the recommended optimal technique for quaranteening spam.
 </div><br>
 <div style="text-align:left">
  It is recommended you use Friends system based quarantining instead, see online help for <a href="http://netwinsite.com/surgeweb/help/spam_q.htm" class="link">more info on switching</a>. This  provides the following advantages: 
  <ul>
  <li>Link based spam folder management from your mail client. Single click links in this email allow you to safely preview and release if required messages without having to login to the web interface.   
  <li>Reduced false positives by using the Friends whitelist.
  <li>Provides a single location for the storage of all messages identified as possible spam.
  <li>In this email, shows you just the new messages received since the last status email was last sent.
  </ul>
  Note: Friends in "silent mode" provides the same functionality as spam held and does not send challenge emails. If you have already switched, you may just need to clear out your spam help folder to get rid of this warning.
 </div>
 
 <div style="text-align:left">
  <h4>Currently held messages:</h4>
  <p>
  ||begin_list_spam_store||
    ||store_from|||||store_subject||<br>
  ||end_list_spam_store||
  <br>
 </div>

||endif||

<br>
<div>
Server side user message processing actions for:<br> <i> ||period|| day(s) to ||localdate||end||</i>
<pre>
||account_log_summary||
</pre>
For full details on these actions see:<br> <a target="_links" href="||pending_link_log||" class="link">full processing log</a>

</div>
</center>
</body>
