Changes between Version 1 and Version 2 of TracNotification
- Timestamp:
- 02/22/09 22:50:18 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v1 v2 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 = [email protected], [email protected] 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 == … … 107 120 to delete these notifications. 108 121 122 In Thunderbird, there is no such solution if you use IMAP 123 (see http://kb.mozillazine.org/Filters_(Thunderbird)#Filtering_the_message_body). 124 125 The best you can do is to set "always_notify_updater" in conf/trac.ini to false. 126 You will however still get an email if you comment a ticket that you own or have reported. 127 128 You can also add this plugin: 129 http://trac-hacks.org/wiki/NeverNotifyUpdaterPlugin 130 109 131 == Troubleshooting == 110 132 … … 134 156 }}} 135 157 136 In such a case, you need to configure your server so that the web server is authorize to post to the SMTP server. The actual settings depend on your Linux distribution and current security policy. You may find help browsing the Trac MailingListarchive.158 In such a case, you need to configure your server so that the web server is authorized to post to the SMTP server. The actual settings depend on your Linux distribution and current security policy. You may find help browsing the Trac [trac:MailingList MailingList] archive. 137 159 138 160 Relevant ML threads: