summaryrefslogtreecommitdiffstats
path: root/extensions/SecureMail
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-06-14 19:33:54 +0200
committerByron Jones <bjones@mozilla.com>2012-06-14 19:33:54 +0200
commit5a403a3cfe5b02a34d7608cd301742420c8a6605 (patch)
tree32777caed1b5396ec69a027e794257c1a8129fd1 /extensions/SecureMail
parenta38f6fe419a2d8cfd679b85f65c67a0cf67b4565 (diff)
downloadbugzilla-5a403a3cfe5b02a34d7608cd301742420c8a6605.tar.gz
bugzilla-5a403a3cfe5b02a34d7608cd301742420c8a6605.tar.xz
Bug 764892: Fix SecureMail not replacing multipart email when public key is missing
Diffstat (limited to 'extensions/SecureMail')
-rw-r--r--extensions/SecureMail/Extension.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm
index 1a94fe48c..71eb470a2 100644
--- a/extensions/SecureMail/Extension.pm
+++ b/extensions/SecureMail/Extension.pm
@@ -400,6 +400,8 @@ sub _make_secure {
$vars, \$message)
|| ThrowTemplateError($template->error());
+ $email->parts_set([]);
+ $email->content_type_set('text/plain');
$email->body_set($message);
}