Changes between Version 89 and Version 90 of TracNotification
- Timestamp:
- Nov 14, 2016, 1:30:36 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v89 v90 1 1 = Email Notification of Ticket Changes 2 2 [[TracGuideToc]] 3 [[TranslatedPages]]4 3 5 4 Trac supports notification of ticket changes via email. … … 10 9 11 10 == Receiving Notification Mails 12 13 11 When reporting a new ticket or adding a comment, enter a valid email address or your Trac username in the ''reporter'', ''assigned to/owner'' or ''cc'' field. Trac will automatically send you an email when changes are made to the ticket, depending on how notification is configured. 14 12 … … 34 32 35 33 === Configuration Options 36 37 These are the available options for the `[notification]` section in `trac.ini`: 34 These are the available options for the `[notification]` section in trac.ini: 38 35 39 36 [[TracIni(notification)]] 40 37 41 38 === Example Configuration (SMTP) 42 43 39 {{{#!ini 44 40 [notification] … … 51 47 52 48 === Example Configuration (`sendmail`) 53 54 49 {{{#!ini 55 50 [notification] … … 62 57 }}} 63 58 59 === Subscriber Configuration 60 The default subscriptions are configured in the `[notification-subscriber]` section in trac.ini: 61 62 [[TracIni(notification-subscriber)]] 63 64 Each user can override these defaults in his ''Notifications'' preferences. 65 66 For example to unsubscribe from notifications for one's own changes and comments, the rule "Never notify: I update a ticket" should be added above other subscription rules. 67 64 68 === Customizing the e-mail subject 65 66 69 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: 67 {{{ 70 {{{#!genshi 68 71 $prefix #$ticket.id: $summary 69 72 }}} 70 71 73 The following variables are available in the template: 72 74 … … 80 82 The notification e-mail content is generated based on `ticket_notify_email.txt` in `trac/ticket/templates`. You can add your own version of this template by adding a `ticket_notify_email.txt` to the templates directory of your environment. The default looks like this: 81 83 82 {{{ 84 {{{#!genshi 83 85 $ticket_body_hdr 84 86 $ticket_props … … 116 118 117 119 == Sample Email 118 119 120 {{{ 120 121 #42: testing … … 226 227 Alternatively, you can use `smtp_port = 25`.[[br]] 227 228 You should not use `smtp_port = 465`. Doing so may deadlock your ticket submission. Port 465 is reserved for the SMTPS protocol, which is not supported by Trac. See [trac:comment:2:ticket:7107 #7107] for details. 228 229 == Filtering notifications for one's own changes and comments230 231 To delete these notifications in Gmail, use the following filter:232 {{{233 from:(<smtp_from>) (("Reporter: <username>" -Changes -Comment) OR "Changes (by <username>)" OR "Comment (by <username>)")234 }}}235 236 In Thunderbird, there is no such solution if you use IMAP, see http://kb.mozillazine.org/Filters_(Thunderbird)#Filtering_the_message_body.237 238 You can also add this plugin:239 http://trac-hacks.org/wiki/NeverNotifyUpdaterPlugin, or vote for [trac:#2247] to be fixed.240 229 241 230 == Troubleshooting … … 248 237 249 238 Typical error message: 250 {{{ 239 {{{#!sh 251 240 ... 252 241 File ".../smtplib.py", line 303, in connect … … 261 250 telnet localhost 25 262 251 }}} 263 264 252 This is because a regular user may connect to the SMTP server, but the web server cannot: 265 253 {{{#!sh … … 269 257 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 in the Trac [trac:MailingList MailingList] archive. 270 258 271 Relevant mailing list thread on SELinux: http://article.gmane.org/gmane.comp.version-control.subversion.trac.general/7518 259 Relevant ML threads: 260 * SELinux: http://article.gmane.org/gmane.comp.version-control.subversion.trac.general/7518 272 261 273 262 For SELinux in Fedora 10: 274 263 {{{#!sh 275 setsebool -P httpd_can_sendmail 1264 $ setsebool -P httpd_can_sendmail 1 276 265 }}} 277 266