http://trac.edgewall.org/wiki/TracNotification官网上提供的方法。个人觉得不是清楚,不过还是有参考价值的。以下写下自己的添加过程,以作记录。
1.the [trac] base_url
option must
be set in trac.ini.
base_url=http://110.28.136.186:8000/mytrac
2.[components]
acct_mgr.notification.* = enabled
3.这一步也是最关键的,也是弄了我好久,smtp_from_name,smtp_user网上很多都是直接使用postmaster帐号名,使用帐号名就出现
问题‘Authentication failure[0]‘,将它们改成邮件的格式,并且一定要相同才能使用!
[notification]
admit_domains =
always_notify_owner =
true
always_notify_reporter = true
always_notify_updater =
true
ambiguous_char_width = single
batch_subject_template = $prefix Batch
modify: $tickets_descr
email_sender = SmtpEmailSender
mime_encoding =
base64
smtp_always_bcc =
smtp_always_cc =
[email protected]
smtp_default_domain =
smtp_enabled = true
smtp_from =
[email protected]
smtp_from_author = true
smtp_from_name
= [email protected]
smtp_password = possword
smtp_replyto
=
smtp_server = smtp.mail.com
smtp_subject_prefix = __default__
smtp_user =
[email protected]
ticket_subject_template = $prefix #$ticket.id:
$summary
use_public_cc = false
use_short_addr = false
use_tls =
false
liunx trac 邮件提示功能,码迷,mamicode.com