% 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 = config.get('baruwa.default.url', 'http://localhost')
hurl = urlparse(str(host))
%>
${datetimeformat(format_date(item.timestamp, tzinfo), format='%Y-%m-%d %H:%M:%S')} |
${'' if item.from_address is None else wrap_paragraphs(item.from_address, 25)} |
${'' if item.subject is None else wrap_paragraphs(item.subject, 35)} |
|
% 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 = config.get('baruwa.default.url', 'http://localhost')
hurl = urlparse(str(host))
%>
${datetimeformat(format_date(item.timestamp, tzinfo), format='%Y-%m-%d %H:%M:%S')} |
${'' if item.from_address is None else wrap_paragraphs(item.from_address, 25)} |
${'' if item.subject is None else wrap_paragraphs(item.subject, 35)} |
|
% endfor
% endif