${_('Message Details')}

${_('Message ID')}
${h.wrap_paragraphs(c.msg.messageid, 60)}
${_('From address')}
${c.msg.from_address or '---'}
${_('To address')}
${h.do_breaks(c.msg.to_address or '---')}
${_('Subject')}
${c.msg.subject or '---'}
${_('Received on')}
${h.datetimeformat(h.format_date(c.msg.timestamp, c.tzinfo), format='%Y-%m-%d %H:%M:%S %z (%Z)')}
${_('Received by')}
${c.msg.hostname}
${_('Received from')}
${c.msg.clientip}
${_('Received via')}
% if c.show_trail: <%include file="includes/relayedvia.html"/> % endif
${h.link_to(h.literal('') + h.literal(' ') + _('Hide hosts'), url.current()) if c.show_trail else h.link_to(h.literal('') + h.literal(' ') + _('Show hosts'), url.current(t='y'))}
${_('Size')}
${h.format_byte_size(c.msg.size)}
${_('Message Headers')}
<%include file="includes/mailheaders.html"/>
${h.link_to(h.literal('') + h.literal(' ') + _('Hide headers'), url.current()) if c.show_trail else h.link_to(h.literal('') + h.literal(' ') + _('Show headers'), url.current(t='y'))}
% if 'deliver' in c.msg.actions.split(','):
${_('Copy Stored')}
${functions.yes_no(c.msg.isquarantined)}
% else:
${_('Quarantined')}
${functions.yes_no(c.msg.isquarantined)}
% endif:
${_('Virus infected')}
${functions.yes_no(c.msg.virusinfected)}
${_('Prohibited File')}
${functions.yes_no(c.msg.nameinfected)}
${_('Other infection')}
${functions.yes_no(c.msg.otherinfected)}

${_('Spam checks results')}

${_('Results')}

${_('Message Score')}
${c.msg.sascore}
${_('Identified as Spam')}
${functions.spam_actions(c.msg, 1)}
${_('Definite Spam')}
${functions.spam_actions(c.msg, 2)}
${_('Sender in RBL')}
${functions.yes_no(c.msg.rblspam)}\ % if c.msg.rblspam: RBL's: ${h.get_rbl_name(c.msg.spamreport)} % endif
${_('Approved Sender')}
${functions.yes_no(c.msg.whitelisted)}
${_('Blocked Sender')}
${functions.yes_no(c.msg.blacklisted)}
${_('Bayesian Auto Learned')}
${h.sa_learned(c.msg.spamreport)}

${_('Rules matched')}

${_('Score')}
${_('Rule name')}
${_('Rule description')}
% for rule in h.spam_report(c.msg.spamreport):
${rule['score']}
${h.link_to(rule['rule'], url('edit-local-scores', score_id=rule['rule']))}
${rule['description']}
% endfor
% if c.msg.isquarantined:

${_('Quarantine')}

% if c.msg.virusinfected or c.msg.nameinfected or c.msg.otherinfected: % if c.user.account_type != 3: <%include file="includes/enabledform.html"/> % else: <%include file="includes/disabledform.html"/> % endif % else: <%include file="includes/enabledform.html"/> % endif % endif

${_('Delivery information')}

% if c.msgstatus:
${_('Status')}
${_('Hostname')}
${_('Message')}
${_('Date/Time')}
% else:
<% message_actions = c.msg.actions.split(',') %>\ % if 'store' in message_actions and 'deliver' not in message_actions: ${_('The message was quarantined')} % elif 'delete' in message_actions: ${_('The message was deleted')} % else: ${_('No delivery status information available')} % endif
% endif % for status in c.msgstatus:
${h.literal('') if status.errorno == 0 else h.literal('')}
${status.hostname}
${status.confirmation if status.errorno == 0 else status.errorstr}
${h.datetimeformat(h.format_date(status.timestamp, c.tzinfo), format='%Y-%m-%d %H:%M:%S %z (%Z)')}
% endfor
<%def name="headers()">\ <%def name="title()">\ ${_('Showing message :: %(i)s') % dict(i=h.wrap_paragraphs(c.msg.messageid, 60))} <%def name="submenu()">\ <%def name="heading()">\ ${self.title()} <%def name="localscripts()">\ ${h.javascript_link(h.media_url() + 'js/baruwa/messages.detail.min.js')} <%inherit file="../base.html"/> <%namespace name="functions" file="functions.html"/>