aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-14 15:25:20 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-23 18:55:10 +0100
commitdf731c5a0ffccc434550ca4dd2ecace5287848fa (patch)
tree2d5c2bd50830c68b7f925520802ea06bcb7f6235 /templates
parente663d5e373dfafedd4be7e6e79ac79eae511b54d (diff)
Script to email/anonymize inactive users.
Diffstat (limited to 'templates')
-rw-r--r--templates/email/default/inactive-account.html26
-rw-r--r--templates/email/default/inactive-account.txt18
2 files changed, 44 insertions, 0 deletions
diff --git a/templates/email/default/inactive-account.html b/templates/email/default/inactive-account.html
new file mode 100644
index 000000000..78b277877
--- /dev/null
+++ b/templates/email/default/inactive-account.html
@@ -0,0 +1,26 @@
+[%
+
+email_summary = "Your inactive account on " _ site_name;
+email_columns = 1;
+
+PROCESS '_email_settings.html';
+
+INCLUDE '_email_top.html';
+
+%]
+
+<th style="[% td_style %][% only_column_style %]">
+ <h1 style="[% h1_style %]">Your inactive account</h1>
+ <p style="[% p_style %]">
+Your account on [% site_name %] has been inactive for [% email_from %]
+[% nget('month', 'months', email_from) %], and we automatically remove
+accounts that have been inactive after [% anonymize_from %]
+[% nget('month', 'months', anonymize_from) %]. If you wish to keep your
+account, please log in to the site and that will keep it active:
+</p>
+ <p style="margin: 20px auto; text-align: center">
+ <a style="[% button_style %]" href="[% url %]">Visit [% site_name %]</a>
+ </p>
+ <p style="[% p_style %]">Thanks for using the site.</p>
+
+[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/default/inactive-account.txt b/templates/email/default/inactive-account.txt
new file mode 100644
index 000000000..1b6b8b5bd
--- /dev/null
+++ b/templates/email/default/inactive-account.txt
@@ -0,0 +1,18 @@
+Subject: Your inactive account on [% site_name %]
+
+Hello [% user.name %],
+
+Your account on [% site_name %] has been inactive for [% email_from %]
+[% nget('month', 'months', email_from) %], and we automatically remove
+accounts that have been inactive after [% anonymize_from %]
+[% nget('month', 'months', anonymize_from) %]. If you wish to keep your
+account, please log in to the site and that will keep it active:
+
+[% url %]
+
+Thanks for using the site.
+
+[% INCLUDE 'signature.txt' %]
+
+This email was sent automatically, from an unmonitored email account - so
+please do not reply to it.