Changes between Version 7 and Version 8 of TracNotification


Ignore:
Timestamp:
09/14/2019 03:12:44 PM (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracNotification

    v7 v8  
    99
    1010== 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.
     11When 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
     13Permission groups can also be entered in the CC field,
     14to notify all members of the group.
    1215
    1316=== How to use your username to receive notification mails
     
    3437These are the available options for the `[notification]` section in trac.ini:
    3538
    36 [[TracIni(notification)]]
     39[[TracIni(section=notification)]]
    3740
    3841=== Example Configuration (SMTP)
     
    6063The default subscriptions are configured in the `[notification-subscriber]` section in trac.ini:
    6164
    62 [[TracIni(notification-subscriber)]]
     65[[TracIni(section=notification-subscriber)]]
    6366
    6467Each user can override these defaults in his ''Notifications'' preferences.
     
    6770
    6871=== 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 Genshi text template] snippet. The default value is:
     72The 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:
    7073{{{#!genshi
    71 $prefix #$ticket.id: $summary
     74${prefix} #${ticket.id}: ${summary}
    7275}}}
    7376The following variables are available in the template:
    7477
    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]).
    7680 * `prefix`: The prefix defined in `smtp_subject_prefix`.
    7781 * `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`.
    7983
    8084=== Customizing the e-mail content