summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Mailer.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-11 00:01:42 +0200
committerGitHub <noreply@github.com>2018-04-11 00:01:42 +0200
commitdbb1de997b8bfe0d2b78c709f7c531aef9537437 (patch)
tree6a8080b9ef8f99574460529443426e3860118bfb /Bugzilla/Mailer.pm
parent71ef35b5330d80e8f5d4bdc99f62aea3fadb22c5 (diff)
downloadbugzilla-dbb1de997b8bfe0d2b78c709f7c531aef9537437.tar.gz
bugzilla-dbb1de997b8bfe0d2b78c709f7c531aef9537437.tar.xz
no bug - remove stack traces from badhosts error messages (#528)
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r--Bugzilla/Mailer.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index b2e87751d..1b77e5063 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -186,11 +186,11 @@ sub MessageToMTA {
{ email => $email, mailer_args => \@args });
try {
- my $to = $email->header('to') or die 'Unable to find "To:" address';
+ my $to = $email->header('to') or die qq{Unable to find "To:" address\n};
my @recipients = Email::Address->parse($to);
- die qq{Unable to parse "To:" address - $to} unless @recipients;
- die qq{Did not expect more than one "To:" address in $to} if @recipients > 1;
- my $badhosts = Bugzilla::Bloomfilter->lookup("badhosts") or die "No badhosts bloomfilter";
+ die qq{Unable to parse "To:" address - $to\n} unless @recipients;
+ die qq{Did not expect more than one "To:" address in $to\n} if @recipients > 1;
+ my $badhosts = Bugzilla::Bloomfilter->lookup("badhosts") or die "No badhosts bloomfilter\n";
if ($badhosts->test($recipients[0]->host)) {
WARN("Attempted to send email to address in badhosts: $to");
$email->header_set(to => '');