<% spam = [item for item in messages if item.spam == True] policy = [item for item in messages if item.policy == True] %>

Baruwa

% if spam: % 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] %> % endfor % endif % if policy: % 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] %> % endfor % endif
${'Spam Report'}
${'Date/Time'} ${'From'} ${'To'} ${'Subject'} ${'Release'}
${item.timestamp} ${item.from_address} ${item.to_address} ${item.subject} Release
${'Policy Blocked Report'}
${'Date/Time'} ${'From'} ${'To'} ${'Subject'} ${'Release'}
${item.timestamp} ${item.from_address} ${item.to_address} ${item.subject} Release
© 2012 Powered by Baruwa Hosted