Changes between Version 3 and Version 4 of TracNotification


Ignore:
Timestamp:
Apr 6, 2009, 6:53:59 PM (15 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracNotification

    v3 v4  
    3939   * `qp` or `quoted-printable`: best for european languages (more compact than base64), not recommended for non-ASCII text (less compact than base64)
    4040   * `none`: no encoding. Use with plain english only (ASCII). E-mails with non-ASCII chars won't be delivered.
     41 * '''ticket_subject_template''': (''since 0.11'') A [http://genshi.edgewall.org/wiki/Documentation/text-templates.html Genshi text template] snippet used to get the notification subject.
    4142
    4243Either '''smtp_from''' or '''smtp_replyto''' (or both) ''must'' be set, otherwise Trac refuses to send notification mails.
     
    5253smtp_always_cc = ticketmaster@example.com, theboss+myproj@example.com
    5354}}}
     55
     56=== Customizing the e-mail subject ===
     57The 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:
     58{{{
     59$prefix #$ticket.id: $summary
     60}}}
     61The following variables are available in the template:
     62
     63 * `env`: The project environment (see [trac:source:/trunk/trac/env.py env.py]).
     64 * `prefix`: The prefix defined in `smtp_subject_prefix`.
     65 * `summary`: The ticket summary, with the old value if the summary was edited.
     66 * `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, e.g. `$ticket.milestone`.
    5467
    5568== Sample Email ==
     
    107120to delete these notifications.
    108121
     122In Thunderbird, there is no such solution if you use IMAP
     123(see http://kb.mozillazine.org/Filters_(Thunderbird)#Filtering_the_message_body).
     124
     125The best you can do is to set "always_notify_updater" in conf/trac.ini to false.
     126You will however still get an email if you comment a ticket that you own or have reported.
     127
     128You can also add this plugin:
     129http://trac-hacks.org/wiki/NeverNotifyUpdaterPlugin
     130
    109131== Troubleshooting ==
    110132
     
    134156}}}
    135157
    136 In such a case, you need to configure your server so that the web server is authorize to post to the SMTP server. The actual settings depend on your Linux distribution and current security policy. You may find help browsing the Trac MailingList archive.
     158In 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 browsing the Trac [trac:MailingList MailingList] archive.
    137159
    138160Relevant ML threads: