Edgewall Software

Changes between Version 39 and Version 40 of TracNotification


Ignore:
Timestamp:
Jan 29, 2009, 12:23:06 AM (15 years ago)
Author:
Remy Blank
Comment:

Added documentation for ticket_subject_template. Closes #7671.

Legend:

Unmodified
Added
Removed
Modified
  • TracNotification

    v39 v40  
    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 ==