Ticket #41 (closed defect: fixed)
Subject Templating
| Reported by: | scottmc | Owned by: | scottmc |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | JavaMailer | Version: | 1.0 |
| Keywords: | Cc: |
Description
Subjects are not being templated
Reproduce:
Create email with tokens in subject
Expected:
Tokens are replaced by template engine
Observed:
Tokens are sent in email
Reason:
Template parser is not running on subject
There are easy steps available for fixing this
- Make parseTextTemplate a public method
- Call parseTextTemplate on outgoing subjects
Potential issues with suggested fix
- Synchronization overhead on template regex, this can be resolved quite easily by creating a seperate java.util.regex.Pattern object for each template object. However, this may not be an issue at all. Additionally, it may be possible to clone the object.
- parseTextTemplate was not designed for this.
Change History
Note: See
TracTickets for help on using
tickets.