{% if connection %}

{{ 'log.connection.head'|trans({'uuid': uuid}) }}

{% for row in connection %} {% set dateymd = row.datetime|date('Y-m-d') %} {% endfor %}
{{ dateymd }} {{ row.datetime|date('H:i:s') }} {% if row.message starts with "C: " %} {% else %} {% if row.message starts with "S: " %} {% endif %} {% endif %} {% if row.message starts with "C: " %} {{ row.message|slice(3, -8) }} {% else %} {% if row.message starts with "S: " %} {% if row.message starts with "S: 250 Queued" %} {% elseif row.message starts with "S: 250 Quarantined" %} {% elseif row.message starts with "S: 250 Discarded" %} {% elseif row.message starts with "S: 4" or row.message starts with "S: 5" %} {% endif %} {{ row.message|slice(3) }} {% elseif txid is not empty %} [{{ row.origin }}] [{{ row.level }}] - {{ row.message|e|txlink(txid, dateymd) }} {% else %} [{{ row.origin }}] [{{ row.level }}] - {{ row.message }} {% endif %} {% endif %}

{% endif %} {% if log and log.rows %}

{{ 'log.transaction.head'|trans({'txid': txid}) }}

{% for row in log.rows %} {% endfor %}
{{ row.datetime|date('Y-m-d') }} {{ row.datetime|date('H:i:s') }} {% if row.message starts with "C: " %} {% else %} {% if row.message starts with "S: " %} {% endif %} {% endif %} {% if row.message starts with "C: " %} {{ row.message|slice(3)|replace({' state=1': ''}) }} {% else %} {% if row.message starts with "S: " %} {% if row.message starts with "S: 250 Queued" %} {% elseif row.message starts with "S: 250 Quarantined" %} {% elseif row.message starts with "S: 250 Discarded" %} {% elseif row.message starts with "S: 4" or row.message starts with "S: 5" %} {% endif %} {{ row.message|slice(3) }} {% else %} [{{ row.origin }}] [{{ row.level }}] - {{ row.message }} {% endif %} {% endif %}

{% endif %}
{% if deliveries|length %}

{{ 'log.delivery.head'|trans }}

{% endif %} {% for num, delivery in deliveries %} {% for row in delivery %} {% set dateymd = row.datetime|date('Y-m-d') %} {% endfor %}
{{ dateymd }} {{ row.datetime|date('H:i:s') }} {% if row.message starts with "C: " %} {% else %} {% if row.message starts with "S: " %} {% endif %} {% endif %} {% if row.message starts with "C: " %} {{ row.message|slice(3) }} {% else %} {% if row.message starts with "S: " %} {% if row.message starts with "S: 250 Queued" %} {% elseif row.message starts with "S: 250 Quarantined" %} {% elseif row.message starts with "S: 250 Discarded" %} {% elseif row.message starts with "S: 4" or row.message starts with "S: 5" %} {% endif %} {{ row.message|slice(3) }} {% else %} [{{ row.origin }}] [{{ row.level }}] - {{ row.message|e|txlink(null, dateymd) }} {% endif %} {% endif %}
{% endfor %}