%
spam = [item for item in messages if item.spam == True]
policy = [item for item in messages if item.policy == True]
%>
% if spam:
${'Spam Report'} |
${'Date/Time'}
|
${'From'}
|
${'To'}
|
${'Subject'}
|
${'Release'}
|
% for i, item in enumerate(spam):
<%
if item.to_domain in host_urls:
host = host_urls[item['to_domain']]
else:
host = default_url
protocol = host.split('://')[0]
host = host.split('://')[1]
%>
${item.timestamp}
|
${item.from_address}
|
${item.to_address}
|
${item.subject}
|
Release
|
% endfor
% endif
% if policy:
${'Policy Blocked Report'} |
${'Date/Time'}
|
${'From'}
|
${'To'}
|
${'Subject'}
|
${'Release'}
|
% for i, item in enumerate(policy):
<%
if item.to_domain in host_urls:
host = host_urls[item['to_domain']]
else:
host = default_url
protocol = host.split('://')[0]
host = host.split('://')[1]
%>
${item.timestamp}
|
${item.from_address}
|
${item.to_address}
|
${item.subject}
|
Release
|
% endfor
% endif
© 2012 Powered by Baruwa Hosted
|
|