Modify

Opened 12 months ago

Last modified 12 months ago

#11278 new enhancement

Allow for email template files

Reported by: anonymous Owned by: ejucovy
Priority: normal Component: WorkflowNotificationPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I would like to see the ability to specify template files for .body similar to this:

notify_reporter_accepted.body = Template[notify_reporter_accepted.txt]

Attachments (0)

Change History (1)

comment:1 Changed 12 months ago by ethan.jucovy@…

I'd love to have this feature.

I think I would prefer to spell it more like:

notify_reporter_accepted.body = notify_reporter_accepted.txt
notify_reporter_accepted.body.source = file  # either "file" or "string" (the default)

The code would be simpler that way, and would also leave room for future expansion (e.g. getting templates from wiki page contents or files in version control)

I think a global setting would also be useful:

default_template_source = file 

I'm not sure when I'll have a chance to implement this myself, but a patch would be very welcome.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.