]> git.proxmox.com Git - pmg-api.git/commitdiff
spamreport-short.tt: new spamreport template
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Apr 2017 09:45:25 +0000 (11:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Apr 2017 09:45:25 +0000 (11:45 +0200)
Makefile
templates/spamreport-short.tt [new file with mode: 0644]

index 57cb56c1e54e4094c13bd21f71e7a640d517ec46..25cd925101f912203a267d213bfb8c3c82a63d4f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,7 @@ CONF_MANS= pmg.conf.5 cluster.conf.5
 
 TEMPLATES =                            \
        spamreport-verbose.tt           \
+       spamreport-short.tt             \
        main.cf.in                      \
        main.cf.in.demo                 \
        master.cf.in                    \
diff --git a/templates/spamreport-short.tt b/templates/spamreport-short.tt
new file mode 100644 (file)
index 0000000..5c88389
--- /dev/null
@@ -0,0 +1,20 @@
+[%- IF timespan == 'week' -%]
+[%- SET title = "Weekly Spam Report for '${pmail}' - ${date}'" -%]
+[%- ELSE %]
+[%- SET title = "Daily Spam Report for '${pmail}' - ${date}" -%]
+[%- END -%]
+<html>
+  <head>
+    <title>[% title %]</title>
+  </head>
+  <body>
+
+    <p>You received [% mailcount %] spam mail(s). Please use the
+      <a href='[% managehref | url %]'>web interface</a>
+      to manage your spam quarantine.
+    </p>
+
+    <p>Powered by <a target=_blank href='http://www.proxmox.com'>Proxmox</a>.</p>
+
+  </body>
+</html>