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)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.83 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•17 years ago
|
||
I'm limiting this hook to Bugzilla 3.4 because it might have some unknown performance impact.
| Assignee | ||
Comment 2•17 years ago
|
||
Attachment #343724 -
Flags: review?(LpSolit)
| Assignee | ||
Comment 3•17 years ago
|
||
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)
| Assignee | ||
Comment 4•17 years ago
|
||
Okay, this one has example code.
Attachment #343725 -
Flags: review?(LpSolit)
Comment 5•17 years ago
|
||
Comment on attachment 343725 [details] [diff] [review]
v2
Works fine. r=LpSolit
Attachment #343725 -
Flags: review?(LpSolit) → review+
Updated•17 years ago
|
Flags: approval+
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
| Assignee | ||
Comment 6•17 years ago
|
||
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.
Description
•