Changes between Version 3 and Version 4 of TracNotification


Ignore:
Timestamp:
03/10/09 07:17:23 (10 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracNotification

    v3 v4  
    3939   * `qp` or `quoted-printable`: best for european languages (more compact than base64), not recommended for non-ASCII text (less compact than base64) 
    4040   * `none`: no encoding. Use with plain english only (ASCII). E-mails with non-ASCII chars won't be delivered.  
     41 * '''ticket_subject_template''': (''since 0.11'') A [http://genshi.edgewall.org/wiki/Documentation/text-templates.html Genshi text template] snippet used to get the notification subject. 
    4142 
    4243Either '''smtp_from''' or '''smtp_replyto''' (or both) ''must'' be set, otherwise Trac refuses to send notification mails. 
     
    5253smtp_always_cc = ticketmaster@example.com, theboss+myproj@example.com 
    5354}}} 
     55 
     56=== Customizing the e-mail subject === 
     57The e-mail subject can be customized with the `ticket_subject_template` option, which contains a [http://genshi.edgewall.org/wiki/Documentation/text-templates.html Genshi text template] snippet. The default value is: 
     58{{{ 
     59$prefix #$ticket.id: $summary 
     60}}} 
     61The following variables are available in the template: 
     62 
     63 * `env`: The project environment (see [trac:source:/trunk/trac/env.py env.py]). 
     64 * `prefix`: The prefix defined in `smtp_subject_prefix`. 
     65 * `summary`: The ticket summary, with the old value if the summary was edited. 
     66 * `ticket`: The ticket model object (see [trac:source:/trunk/trac/ticket/model.py model.py]). Individual ticket fields can be addressed by appending the field name separated by a dot, e.g. `$ticket.milestone`. 
    5467 
    5568== Sample Email ==