2019-01-29 00:21:09 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
2020-05-08 18:29:51 +02:00
|
|
|
<meta name="x-apple-disable-message-reformatting" />
|
2019-01-29 00:21:09 +01:00
|
|
|
<style>
|
|
|
|
body {
|
2019-02-06 09:21:54 +01:00
|
|
|
font-family: Helvetica, Arial, Sans-Serif;
|
2019-01-29 00:21:09 +01:00
|
|
|
}
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
th, td {
|
|
|
|
padding: 8px;
|
|
|
|
text-align: left;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2020-05-08 18:29:51 +02:00
|
|
|
td.fixed {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2019-02-06 09:21:54 +01:00
|
|
|
th {
|
|
|
|
background-color: #56B04C;
|
|
|
|
color: white;
|
|
|
|
}
|
2020-05-08 18:29:51 +02:00
|
|
|
tr:nth-child(even) {
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
}
|
|
|
|
/* mobile devices */
|
|
|
|
@media all and (max-width: 480px) {
|
|
|
|
.mob {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2019-01-29 00:21:09 +01:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-05-04 07:50:09 +02:00
|
|
|
<p>Hi {{username}}!<br>
|
2019-02-09 21:29:15 +01:00
|
|
|
{% if counter == 1 %}
|
2019-02-09 21:27:47 +01:00
|
|
|
There is 1 new message waiting in quarantine:<br>
|
2019-02-09 21:29:15 +01:00
|
|
|
{% else %}
|
|
|
|
There are {{counter}} new messages waiting in quarantine:<br>
|
|
|
|
{% endif %}
|
2019-01-29 00:21:09 +01:00
|
|
|
<table>
|
2020-11-06 12:26:48 +01:00
|
|
|
<tr><th>Subject</th><th>Sender</th><th class="mob">Score</th><th class="mob">Action</th><th class="mob">Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
|
|
|
|
{% for line in meta|reverse %}
|
2019-01-29 00:21:09 +01:00
|
|
|
<tr>
|
|
|
|
<td>{{ line.subject|e }}</td>
|
|
|
|
<td>{{ line.sender|e }}</td>
|
2020-05-08 18:29:51 +02:00
|
|
|
<td class="mob">{{ line.score }}</td>
|
2020-11-06 12:26:48 +01:00
|
|
|
{% if line.action == "reject" %}
|
|
|
|
<td class="mob">Rejected</td>
|
|
|
|
{% else %}
|
|
|
|
<td class="mob">Sent to Junk folder</td>
|
|
|
|
{% endif %}
|
2020-05-08 18:29:51 +02:00
|
|
|
<td class="mob">{{ line.created }}</td>
|
2019-02-06 09:21:54 +01:00
|
|
|
{% if quarantine_acl == 1 %}
|
2020-11-06 12:26:48 +01:00
|
|
|
{% if line.action == "reject" %}
|
|
|
|
<td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">Release to inbox</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
|
|
|
|
{% else %}
|
|
|
|
<td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">Send copy to inbox</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
|
|
|
|
{% endif %}
|
2019-02-06 09:21:54 +01:00
|
|
|
{% endif %}
|
2019-01-29 00:21:09 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|