diff options
author | Byron Jones <glob@mozilla.com> | 2014-11-27 15:22:17 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-11-27 15:22:17 +0100 |
commit | 1aa5e76d25f0eb1d9d59909b486d9549458c95f0 (patch) | |
tree | 7fff051b65ba6fa541ce8d46543e4b1d2a034a43 /Bugzilla | |
parent | 412b8264dd8b7832e273be8e887df2c47c46b297 (diff) | |
download | bugzilla-1aa5e76d25f0eb1d9d59909b486d9549458c95f0.tar.gz bugzilla-1aa5e76d25f0eb1d9d59909b486d9549458c95f0.tar.xz |
Bug 1092578: Decide if an email needs to be encrypted at the time it is generated, not at the time it is sent
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/BugMail.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 59b911878..6466448bc 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -453,6 +453,10 @@ sub sendMail { sub enqueue { my ($vars) = @_; + + # BMO: allow modification of the email at the time it was generated + Bugzilla::Hook::process('bugmail_enqueue', { vars => $vars }); + # we need to flatten all objects to a hash before pushing to the job queue. # the hashes need to be inflated in the dequeue method. $vars->{bug} = _flatten_object($vars->{bug}); @@ -544,6 +548,10 @@ sub _generate_bugmail { $email->content_type_set('multipart/alternative'); } $email->parts_set(\@parts); + + # BMO: allow modification of the email given the enqueued variables + Bugzilla::Hook::process('bugmail_generate', { vars => $vars, email => $email }); + return $email; } |