aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Email.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-09 10:43:27 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-14 15:36:27 +0000
commit7361516252a4d98620f66318cabe75acb3291efb (patch)
treed830bd8035c602e75e6f5e83aaff9cbabcaad0fd /perllib/FixMyStreet/Email.pm
parent8b19bd2c900e94b1dff643211a4b3a93c8718c27 (diff)
Remove duplicate <> around envelope senders.
Diffstat (limited to 'perllib/FixMyStreet/Email.pm')
-rw-r--r--perllib/FixMyStreet/Email.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Email.pm b/perllib/FixMyStreet/Email.pm
index 7d81c9dc5..e0d82a8ef 100644
--- a/perllib/FixMyStreet/Email.pm
+++ b/perllib/FixMyStreet/Email.pm
@@ -77,6 +77,10 @@ sub _render_template {
return $var;
}
+sub unique_verp_id {
+ sprintf('fms-%s@%s', generate_verp_token(@_), FixMyStreet->config('EMAIL_DOMAIN'));
+}
+
sub _unique_id {
sprintf('fms-%s-%s@%s',
time(), unpack('h*', random_bytes(5, 1)),