Changes between Version 1 and Version 2 of TracNotification
- Время:
- 21 июн. 2010 г., 16:31:21 (16 лет назад)
Обозначения:
- Без изменений
- Добавлено
- Удалено
- Изменено
-
TracNotification
v1 v2 2 2 [[TracGuideToc]] 3 3 4 Trac supports notification of ticket changes via email. 4 [[PageOutline]] 5 6 Trac supports notification about ticket changes via email. 5 7 6 8 Email notification is useful to keep users up-to-date on tickets/issues of interest, and also provides a convenient way to post all ticket changes to a dedicated mailing list. For example, this is how the [http://lists.edgewall.com/archive/trac-tickets/ Trac-tickets] mailing list is set up. … … 44 46 * `none`: no encoding. Use with plain english only (ASCII). E-mails with non-ASCII chars won't be delivered. 45 47 * '''`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. 46 * '''`email_sender`''': (''since 0.12'') Name of the component implementing `IEmailSender`. This component is used by the notification system to send emails. Trac currently provides the following components:47 * `SmtpEmailSender`: connects to an SMTP server (default).48 * `SendmailEmailSender`: runs a `sendmail`-compatible executable.49 48 50 49 Either '''`smtp_from`''' or '''`smtp_replyto`''' (or both) ''must'' be set, otherwise Trac refuses to send notification mails. … … 57 56 * '''`use_tls`''': (''since 0.10'') Toggle to send notifications via a SMTP server using [http://en.wikipedia.org/wiki/Transport_Layer_Security TLS], such as GMail. 58 57 59 The following option is specific to email delivery through a `sendmail`-compatible executable.60 * '''`sendmail_path`''': (''since 0.12'') Path to the sendmail executable. The sendmail program must accept the `-i` and `-f` options.61 58 62 59 === Example Configuration (SMTP) === … … 70 67 }}} 71 68 72 === Example Configuration (`sendmail`) ===73 {{{74 [notification]75 smtp_enabled = true76 email_sender = SendmailEmailSender77 sendmail_path = /usr/sbin/sendmail78 smtp_from = notifier@example.com79 smtp_replyto = myproj@projects.example.com80 smtp_always_cc = ticketmaster@example.com, theboss+myproj@example.com81 }}}82 69 83 70 === Customizing the e-mail subject === … … 95 82 === Customizing the e-mail content === 96 83 97 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:84 The notification e-mail content is generated based on `ticket_notify_email.txt` in `trac/ticket/templates`. The default looks like this: 98 85 99 86 {{{