public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Asset] Add default template for quarantine notifications
43a91639
data/assets/templates/quarantine.tpl | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 data/assets/templates/quarantine.tpl
Diff
diff --git a/data/assets/templates/quarantine.tpl b/data/assets/templates/quarantine.tpl
new file mode 100644
index 00000000..2a0a310e
--- /dev/null
+++ b/data/assets/templates/quarantine.tpl
@@ -0,0 +1,35 @@
+<html>
+ <head>
+ <style>
+ body {
+ font-family: sans-serif;
+ }
+ table {
+ border-collapse: collapse;
+ width: 100%;
+ margin-bottom: 20px;
+ }
+ th, td {
+ padding: 8px;
+ text-align: left;
+ border-bottom: 1px solid #ddd;
+ vertical-align: top;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Hi!<br>
+ There are {{counter}} new messages waiting in quarantine:<br>
+ <table>
+ <tr><th>Subject</th><th>Sender</th><th>Arrived on</th></tr>
+ {% for line in meta %}
+ <tr>
+ <td>{{ line.subject|e }}</td>
+ <td>{{ line.sender|e }}</td>
+ <td>{{ line.created }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </p>
+ </body>
+</html>