{% load amavis_tags %} {% for email in email_list %} {{ email.type|msgtype_to_html }} {% if email.img_rstatus %}{% endif %} {{ email.score }} {{ email.to }} {{ email.from|truncatechars:30 }} {{ email.subject|truncatechars:30 }} {{ email.date|date:"SHORT_DATETIME_FORMAT" }} {% endfor %}