2019-01-29 07:21:09 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<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;
|
|
|
|
}
|
2019-02-06 16:21:54 +08:00
|
|
|
th {
|
|
|
|
background-color: #56B04C;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
tr:nth-child(even){background-color: #f2f2f2}
|
|
|
|
|
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>
|
2019-02-06 16:21:54 +08:00
|
|
|
<tr><th>Subject</th><th>Sender</th><th>Score</th><th>Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
|
2019-01-29 07:21:09 +08:00
|
|
|
{% for line in meta %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ line.subject|e }}</td>
|
|
|
|
<td>{{ line.sender|e }}</td>
|
2019-02-06 16:21:54 +08:00
|
|
|
<td>{{ line.score }}</td>
|
2019-01-29 07:21:09 +08:00
|
|
|
<td>{{ line.created }}</td>
|
2019-02-06 16:21:54 +08:00
|
|
|
{% if quarantine_acl == 1 %}
|
|
|
|
<td><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">release</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
|
|
|
|
{% endif %}
|
2019-01-29 07:21:09 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|