From 8e28c08bc098913884b413e9989f3ec8a4a35bf9 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 22 Mar 2012 14:12:59 +0800 Subject: Bug 737709: securemail should encrypt flag request emails --- extensions/SecureMail/Extension.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-24-g4f1b