On Thursday, March 23, 2017 at 2:05:21 AM UTC-7, NS wrote:
>
> I wish to do some little customizations to my trac notification emails. 
>
> At the moment, the email subject contains the following format. 
>
>
>
> *$prefix #$ticket.id <http://ticket.id>: $summary*But I want to change 
> the prefix based on the activity which happened. For an example, if someone 
> commented on the ticket, I would like to have a prefix as [commented] etc.
>
> So basically, following are the prefixes we wish to see. 
>
> *[OPENED]*, *[ASSIGNED]*, *[COMMENTED]*, or *[CLOSED]*
>

For that level of customization you may need to replace TicketFormatter in 
trac.ticket.notification, after upgrading to Trac 1.2. You should at least 
be able to show the ticket status in the template.
 

> I feel this makes the notifications more useful. I tried to change the 
> "smtp_subject_prefix" value in the trac ini. But it seems I can't find the 
> right values which fit in it. None of the documentation pages were helpful 
> with this as they haven't said anything about which values I'm able to pass 
> to this field. I would at least like to see the ticket status in the 
> subject as the prefix. 
>
> I tried changing the *smtp_subject_prefix* value to *$ticket.status.* But 
> when I put that, it uses the default value again. So it's not working. Can 
> someone please help me with this? If it's useful to know, I use Bitnami *Trac 
> 1.0.5.*
>

You may be confusing [notification] ticket_subject_template and 
[notification] smtp_subject_prefix

To start, it sounds like you want to edit  [notification] 
ticket_subject_template.

https://trac.edgewall.org/wiki/TracNotification#Customizingthee-mailsubject
https://trac.edgewall.org/wiki/TracIni#notification-ticket_subject_template-option
https://trac.edgewall.org/wiki/TracIni#notification-smtp_subject_prefix-option
 
- Ryan

-- 
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