Closed Bug 460590 Opened 17 years ago Closed 17 years ago

Add a hook in Bugzilla::Mailer right before mail is sent

Categories

(Bugzilla :: Email Notifications, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

Some extensions may want to modify an email right before it gets sent out to the user, in MessageToMTA. (The SecureMail extension wants to do this, as an example.) So, we need a hook there. It will be called mailer-before_send.
I'm limiting this hook to Bugzilla 3.4 because it might have some unknown performance impact.
Attached patch v1 (obsolete) — Splinter Review
Attachment #343724 - Flags: review?(LpSolit)
Comment on attachment 343724 [details] [diff] [review] v1 Oh wait, this needs example code.
Attachment #343724 - Attachment is obsolete: true
Attachment #343724 - Flags: review?(LpSolit)
Attached patch v2Splinter Review
Okay, this one has example code.
Attachment #343725 - Flags: review?(LpSolit)
Comment on attachment 343725 [details] [diff] [review] v2 Works fine. r=LpSolit
Attachment #343725 - Flags: review?(LpSolit) → review+
Flags: approval+
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
Checking in Bugzilla/Hook.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Hook.pm,v <-- Hook.pm new revision: 1.23; previous revision: 1.22 done Checking in Bugzilla/Mailer.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Mailer.pm,v <-- Mailer.pm new revision: 1.25; previous revision: 1.24 done RCS file: /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/mailer-before_send.pl,v done Checking in extensions/example/code/mailer-before_send.pl; /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/mailer-before_send.pl,v <-- mailer-before_send.pl initial revision: 1.1 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: