diff options
author | Byron Jones <bjones@mozilla.com> | 2012-03-22 07:12:59 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-03-22 07:12:59 +0100 |
commit | 8e28c08bc098913884b413e9989f3ec8a4a35bf9 (patch) | |
tree | cbf5d4ec18ee97bb047baf993436328f5217b6e2 | |
parent | 26013888080a0b969390e119d99ddbfb3b1b6b46 (diff) | |
download | bugzilla-8e28c08bc098913884b413e9989f3ec8a4a35bf9.tar.gz bugzilla-8e28c08bc098913884b413e9989f3ec8a4a35bf9.tar.xz |
Bug 737709: securemail should encrypt flag request emails
-rw-r--r-- | extensions/SecureMail/Extension.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm index 7cf51e544..15f62a048 100644 --- a/extensions/SecureMail/Extension.pm +++ b/extensions/SecureMail/Extension.pm @@ -207,7 +207,8 @@ sub mailer_before_send { # Decide whether to make secure. # This is a bit of a hack; it would be nice if it were more clear # what sort a particular email is. - my $is_bugmail = $email->header('X-Bugzilla-Status'); + my $is_bugmail = $email->header('X-Bugzilla-Status') || + $email->header('X-Bugzilla-Type') eq 'request'; my $is_passwordmail = !$is_bugmail && ($email->body =~ /cfmpw.*cxlpw/s); my $is_test_email = $email->header('X-Bugzilla-Type') =~ /securemail-test/ ? 1 : 0; |