diff options
author | Struan Donald <struan@exo.org.uk> | 2011-08-04 00:24:13 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-08-04 00:24:13 +0100 |
commit | 3bb65a5debda34cdffd2a83f4747ea19412d0410 (patch) | |
tree | 9ddd58f511dfd832184bdcba5998f7e27c293e67 /perllib/FixMyStreet/App.pm | |
parent | 3700dca455e552ff5846949b972f4be6cf7337dd (diff) | |
parent | 905b86c2439d58fe595267f3b39c9bfd9c300233 (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into open311-consumer
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 68bfc728b..beea8bb11 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -296,6 +296,10 @@ sub send_email { $email->header_set( ucfirst($_), $vars->{$_} ) for grep { $vars->{$_} } qw( to from subject); + $email->header_set( 'Message-ID', sprintf('<fms-%s-%s@%s>', + time(), unpack('h*', random_bytes(5, 1)), $c->config->{EMAIL_DOMAIN} + ) ); + # pass the email into mySociety::Email to construct the on the wire 7bit # format - this should probably happen in the transport instead but hohum. my $email_text = mySociety::Locale::in_gb_locale { mySociety::Email::construct_email( |