Changes between Version 39 and Version 40 of TracNotification
- Timestamp:
- Jan 29, 2009, 12:23:06 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v39 v40 39 39 * `qp` or `quoted-printable`: best for european languages (more compact than base64), not recommended for non-ASCII text (less compact than base64) 40 40 * `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. 41 42 42 43 Either '''smtp_from''' or '''smtp_replyto''' (or both) ''must'' be set, otherwise Trac refuses to send notification mails. … … 52 53 smtp_always_cc = ticketmaster@example.com, theboss+myproj@example.com 53 54 }}} 55 56 === Customizing the e-mail subject === 57 The 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 }}} 61 The 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`. 54 67 55 68 == Sample Email ==