On Friday, January 27, 2017 at 12:17:53 AM UTC-8, Mo wrote:
>
> Hi,
>
> according to
> https://trac.edgewall.org/wiki/TracNotification#Customizingthee-mailcontent
> I already adapted the layout of the notification mails.
>
> Is it possible to integrate some code there like editing $change.comment?
> I like to cut some macros that are less human-readable like 
>
> In [changeset:"cbdb65b2227380011d391520a15ab6b94227a76d/mt5" cbdb75b/mm3]:
> {{{
> #!CommitTicketReference repository="mm3" 
> revision="cbdb65b2227380011d391520a15ab6b94227a76d"
> [ticket #222] tests needed
> Cleanup
>
> [git-p4: depot-paths = "//MM3/": change = 411345]
> }}}
>

You could checkout the documentation for the text template language (1). 
There's an example of inline python code on the page you cited (2).
 

> Another approach but apparently requiring more efforts would be to 
> generate a HTML mail that would use the trac wiki engine to render such 
> content.
>

Have you looked at TracHtmlNotificationPlugin?
 

> BR,
> Mo
>

(1) https://genshi.edgewall.org/wiki/Documentation/0.6.x/text-templates.html
(2) 
 
https://trac.edgewall.org/wiki/TracNotification#Customizinge-mailcontentforMSOutlook
(3) https://trac-hacks.org/wiki/TracHtmlNotificationPlugin 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to