{% load i18n %} {% load amavis_tags %} {% load static %} {% for email in email_list %} {{ email.type|msgtype_to_html }} {% if email.status == 'R' %} {% elif email.status == 'S' %} {% elif email.status == 'H' %} {% endif %} {{ email.score }} {{ email.to }} {{ email.from|truncatechars:30 }} {{ email.subject|truncatechars:30 }} {{ email.date|date:"SHORT_DATETIME_FORMAT" }} {% endfor %}