Changes between Version 7 and Version 8 of TracNotification
- Timestamp:
- 09/14/2019 03:12:44 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v7 v8 9 9 10 10 == Receiving Notification Mails 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. 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 may send you an email when changes are made to the ticket, depending on how your notification preferences are configured. 12 13 Permission groups can also be entered in the CC field, 14 to notify all members of the group. 12 15 13 16 === How to use your username to receive notification mails … … 34 37 These are the available options for the `[notification]` section in trac.ini: 35 38 36 [[TracIni( notification)]]39 [[TracIni(section=notification)]] 37 40 38 41 === Example Configuration (SMTP) … … 60 63 The default subscriptions are configured in the `[notification-subscriber]` section in trac.ini: 61 64 62 [[TracIni( notification-subscriber)]]65 [[TracIni(section=notification-subscriber)]] 63 66 64 67 Each user can override these defaults in his ''Notifications'' preferences. … … 67 70 68 71 === Customizing the e-mail subject 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 Genshitext template] snippet. The default value is:72 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 text template] snippet. The default value is: 70 73 {{{#!genshi 71 $ prefix #$ticket.id: $summary74 ${prefix} #${ticket.id}: ${summary} 72 75 }}} 73 76 The following variables are available in the template: 74 77 75 * `env`: The project environment (see [trac:source:/trunk/trac/env.py env.py]). 78 * `changes`: The ticket changes (prepared by [trac:source:/branches/1.4-stable/trac/ticket/model.py Ticket.get_change]). 79 * `env`: The project environment (see [trac:source:/branches/1.4-stable/trac/env.py env.py]). 76 80 * `prefix`: The prefix defined in `smtp_subject_prefix`. 77 81 * `summary`: The ticket summary, with the old value if the summary was edited. 78 * `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, eg `$ticket.milestone`.82 * `ticket`: The ticket model object (see [trac:source:/branches/1.4-stable/trac/ticket/model.py model.py]). Individual ticket fields can be addressed by appending the field name separated by a dot, eg `$ticket.milestone`. 79 83 80 84 === Customizing the e-mail content