2019-01-29 07:21:09 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2020-05-09 00:29:51 +08:00
|
|
|
<meta name="x-apple-disable-message-reformatting" />
|
2019-01-29 07:21:09 +08:00
|
|
|
<style>
|
|
|
|
body {
|
2019-02-06 16:21:54 +08:00
|
|
|
font-family: Helvetica, Arial, Sans-Serif;
|
2019-01-29 07:21:09 +08: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-09 00:29:51 +08:00
|
|
|
td.fixed {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2019-02-06 16:21:54 +08:00
|
|
|
th {
|
|
|
|
background-color: #56B04C;
|
|
|
|
color: white;
|
|
|
|
}
|
2020-05-09 00:29:51 +08:00
|
|
|
tr:nth-child(even) {
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
}
|
|
|
|
/* mobile devices */
|
|
|
|
@media all and (max-width: 480px) {
|
|
|
|
.mob {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2019-01-29 07:21:09 +08:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-05-04 13:50:09 +08:00
|
|
|
<p>Hi {{username}}!<br>
|
2019-02-10 04:29:15 +08:00
|
|
|
{% if counter == 1 %}
|
2019-02-10 04:27:47 +08:00
|
|
|
There is 1 new message waiting in quarantine:<br>
|
2019-02-10 04:29:15 +08:00
|
|
|
{% else %}
|
|
|
|
There are {{counter}} new messages waiting in quarantine:<br>
|
|
|
|
{% endif %}
|
2019-01-29 07:21:09 +08:00
|
|
|
<table>
|
2020-11-06 19:26:48 +08: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 07:21:09 +08:00
|
|
|
<tr>
|
|
|
|
<td>{{ line.subject|e }}</td>
|
|
|
|
<td>{{ line.sender|e }}</td>
|
2020-05-09 00:29:51 +08:00
|
|
|
<td class="mob">{{ line.score }}</td>
|
2020-11-06 19:26:48 +08:00
|
|
|
{% if line.action == "reject" %}
|
|
|
|
<td class="mob">Rejected</td>
|
|
|
|
{% else %}
|
|
|
|
<td class="mob">Sent to Junk folder</td>
|
|
|
|
{% endif %}
|
2020-05-09 00:29:51 +08:00
|
|
|
<td class="mob">{{ line.created }}</td>
|
2019-02-06 16:21:54 +08:00
|
|
|
{% if quarantine_acl == 1 %}
|
2020-11-06 19:26:48 +08: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 16:21:54 +08:00
|
|
|
{% endif %}
|
2019-01-29 07:21:09 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|