Changes between Version 2 and Version 3 of TracNotification
- Timestamp:
- 2019-05-02T09:45:05-03:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v2 v3 9 9 10 10 == Receiving Notification Mails 11 11 12 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. 12 13 … … 32 33 33 34 === Configuration Options 34 These are the available options for the `[notification]` section in trac.ini: 35 36 These are the available options for the `[notification]` section in `trac.ini`: 35 37 36 38 [[TracIni(notification)]] 37 39 38 40 === Example Configuration (SMTP) 41 39 42 {{{#!ini 40 43 [notification] … … 47 50 48 51 === Example Configuration (`sendmail`) 52 49 53 {{{#!ini 50 54 [notification] … … 57 61 }}} 58 62 59 === Subscriber Configuration60 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 68 63 === Customizing the e-mail subject 64 69 65 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: 70 {{{ #!genshi66 {{{ 71 67 $prefix #$ticket.id: $summary 72 68 }}} 69 73 70 The following variables are available in the template: 74 71 … … 82 79 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: 83 80 84 {{{ #!genshi81 {{{ 85 82 $ticket_body_hdr 86 83 $ticket_props … … 118 115 119 116 == Sample Email 117 120 118 {{{ 121 119 #42: testing … … 227 225 Alternatively, you can use `smtp_port = 25`.[[br]] 228 226 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 comments 229 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. 229 239 230 240 == Troubleshooting … … 237 247 238 248 Typical error message: 239 {{{ #!sh249 {{{ 240 250 ... 241 251 File ".../smtplib.py", line 303, in connect … … 250 260 telnet localhost 25 251 261 }}} 262 252 263 This is because a regular user may connect to the SMTP server, but the web server cannot: 253 264 {{{#!sh … … 257 268 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. 258 269 259 Relevant ML threads: 260 * SELinux: http://article.gmane.org/gmane.comp.version-control.subversion.trac.general/7518 270 Relevant mailing list thread on SELinux: http://article.gmane.org/gmane.comp.version-control.subversion.trac.general/7518 261 271 262 272 For SELinux in Fedora 10: 263 273 {{{#!sh 264 $setsebool -P httpd_can_sendmail 1274 setsebool -P httpd_can_sendmail 1 265 275 }}} 266 276