Changes between Version 6 and Version 7 of TracNotification
- Timestamp:
- 02/04/2017 09:40:10 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v6 v7 9 9 10 10 == Receiving Notification Mails 11 12 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. 13 12 … … 33 32 34 33 === Configuration Options 35 36 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: 37 35 38 36 [[TracIni(notification)]] 39 37 40 38 === Example Configuration (SMTP) 41 42 39 {{{#!ini 43 40 [notification] … … 50 47 51 48 === Example Configuration (`sendmail`) 52 53 49 {{{#!ini 54 50 [notification] … … 61 57 }}} 62 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 63 68 === Customizing the e-mail subject 64 65 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: 66 {{{ 70 {{{#!genshi 67 71 $prefix #$ticket.id: $summary 68 72 }}} 69 70 73 The following variables are available in the template: 71 74 … … 79 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: 80 83 81 {{{ 84 {{{#!genshi 82 85 $ticket_body_hdr 83 86 $ticket_props … … 115 118 116 119 == Sample Email 117 118 120 {{{ 119 121 #42: testing … … 225 227 Alternatively, you can use `smtp_port = 25`.[[br]] 226 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. 227 228 == Filtering notifications for one's own changes and comments229 230 To delete these notifications in Gmail, use the following filter:231 {{{232 from:(<smtp_from>) (("Reporter: <username>" -Changes -Comment) OR "Changes (by <username>)" OR "Comment (by <username>)")233 }}}234 235 In Thunderbird, there is no such solution if you use IMAP, see http://kb.mozillazine.org/Filters_(Thunderbird)#Filtering_the_message_body.236 237 You can also add this plugin:238 http://trac-hacks.org/wiki/NeverNotifyUpdaterPlugin, or vote for [trac:#2247] to be fixed.239 229 240 230 == Troubleshooting … … 247 237 248 238 Typical error message: 249 {{{ 239 {{{#!sh 250 240 ... 251 241 File ".../smtplib.py", line 303, in connect … … 260 250 telnet localhost 25 261 251 }}} 262 263 252 This is because a regular user may connect to the SMTP server, but the web server cannot: 264 253 {{{#!sh … … 268 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. 269 258 270 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 271 261 272 262 For SELinux in Fedora 10: 273 263 {{{#!sh 274 setsebool -P httpd_can_sendmail 1264 $ setsebool -P httpd_can_sendmail 1 275 265 }}} 276 266