diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-30 14:31:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-30 14:31:01 +0100 |
commit | 69797d3c4d10aed6d5ea57fa94c515a39825f2b2 (patch) | |
tree | b7416e819bbc38b0afc4c647610497ae06340967 | |
parent | 9ba87b4ea7ede461a757862ac2b6d4859ff0d3b0 (diff) |
Forward on all bounces as bounces.
-rwxr-xr-x | bin/handlemail | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/handlemail b/bin/handlemail index cc671f786..e027b8f58 100755 --- a/bin/handlemail +++ b/bin/handlemail @@ -172,20 +172,19 @@ sub handle_non_bounce_to_null_address { To => $data{return_path}, _body_ => $template, }); - send_mail($mail->as_string, '<>', $data{return_path}); + send_mail($mail->as_string, $data{return_path}); } sub forward_on_to { my $recipient = shift; my $text = join("\n", @lines) . "\n"; - my $sender = $data{return_path} || '<>'; - send_mail($text, $sender, $recipient); + send_mail($text, $recipient); } sub send_mail { - my ($text, $sender, $recipient) = @_; + my ($text, $recipient) = @_; if (mySociety::EmailUtil::EMAIL_SUCCESS - != mySociety::EmailUtil::send_email($text, $sender, $recipient)) { + != mySociety::EmailUtil::send_email($text, '<>', $recipient)) { exit(75); } } |