custom email notifications

5 views
Skip to first unread message

skink

unread,
Jan 18, 2007, 4:56:57 AM1/18/07
to Trac Development
hi,

is there a way to customize email notifications (ticket related) sent
by trac (maybe even in html)?
if so, how to to that?

thanx

Emmanuel Blot

unread,
Jan 18, 2007, 5:13:53 PM1/18/07
to trac...@googlegroups.com
> is there a way to customize email notifications (ticket related) sent
> by trac (maybe even in html)?

Not really. There are very few customization that can be done in the
notification emails, and HTML is not supported.

Cheers,
Manu

Christopher Taylor

unread,
Jan 22, 2007, 2:53:06 PM1/22/07
to trac...@googlegroups.com
Just a thought here,

This seems to be a very good opportunity for a little bit of
generalization. Instead of just pumping out a standard ticket
notification e-mail suppose we worked off a user defined template? Of
course, we can keep the default templates the way they are now...

This would provide the functionality that users need but without
neccesitating sysadmin envolvement if they are happy with the default
functionality.

Just a thought.

-Chris

Emmanuel Blot

unread,
Jan 22, 2007, 4:10:12 PM1/22/07
to trac...@googlegroups.com
> notification e-mail suppose we worked off a user defined template? Of
> course, we can keep the default templates the way they are now...

There is now notification email template per se: the 'box' (with all
the parameters, except the description and the comments) is hardcoded
in Python for now.

I'm not sure how hard it would be to create a template for email,
knowing that the list of available parameters can be augmented with
custom field values.

Cheers,
Manu

Christopher Taylor

unread,
Jan 22, 2007, 5:09:23 PM1/22/07
to trac...@googlegroups.com
Emmanuel,

Well I imagine whatever kind of lexicon one used in the templating
system would have to easily map to the custom field in the database:

CustomField_<MyCustomField>
CustomField.<MyCustomField>


or something similar.... not sure how custom fields are stored in the
database...

Prepending with CustomField would enable the parser to know that it
has to handle this tag specially ...

-Chris

Reply all
Reply to author
Forward
0 new messages