summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-07 07:11:49 +0100
committerByron Jones <glob@mozilla.com>2014-11-07 07:11:49 +0100
commit613e77099b334526dd0d4e73383231e8332f3816 (patch)
tree794c8c7c9f4171289661abf5b599bca5d8b847dd /extensions
parent27ca752688b360f51ddec9761b006f1a3592c2b4 (diff)
downloadbugzilla-613e77099b334526dd0d4e73383231e8332f3816.tar.gz
bugzilla-613e77099b334526dd0d4e73383231e8332f3816.tar.xz
Bug 1094902: needinfo canceled or requested email end with @@body-headers@@
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 94796ec72..1e24141b4 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -1127,7 +1127,9 @@ sub _inject_headers_into_body {
# as_string() doesn't return the updated body for multi-part sub-parts.
$email->parts_set([ $email->subparts ]);
}
- elsif ($email->content_type =~ /^text\/(?:html|plain)/) {
+ elsif (!$email->content_type
+ || $email->content_type =~ /^text\/(?:html|plain)/)
+ {
# text-only email
_replace_placeholder_in_part($email, $replacement);
}