% if spam:
| ${_('Spam Report')} |
${_('Date/Time')} |
${_('From Address')} |
${_('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 = str(host.split('://')[0])
host = str(host.split('://')[1])
%>
${item.timestamp} |
${item.from_address} |
${item.subject} |
|
% endfor
% endif
% if policy:
| ${_('Policy Blocked Report')} |
${_('Date/Time')} |
${_('From Address')} |
${_('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 = str(host.split('://')[0])
host = str(host.split('://')[1])
%>
${item.timestamp} |
${item.from_address} |
${item.subject} |
|
% endfor
% endif