Noah Kantrowitz skrev 05-05-2008 07:35:
[EMAIL PROTECTED] wrote:I'm seeking to integrate Trac more accessibly to co-workers who (still) love email updates.One of our developers wants to be able to get notifications of any ticket with a given component or tag. Is there a plugin which allows people (or a group?) to subscribe to any ticket marked with a specific component or tag, rather than having them add themselves manually to each ticket's CC?Check out the AnnouncerPlugin. It can do this I think.
Which reminds me -- I have a local patch to email_distributor.py, I've attached it, I'll see about registering a ticket w/patch on trac-hacks.
Basically the problem is that email_distributor.py tries to do authenticated smtp, even if there's no smtp_username defined in the configuration -- which fails on smtp-servers with smtp-auth disabled.
I'm not sure if my patch is the best way to fix this -- but it works. Best regards, -- .---. Eirik Schwenke <[EMAIL PROTECTED]> ( NSD ) Harald HÃ¥rfagresgate 29 Rom 150 '---' N-5007 Bergen tlf: (555) 889 13 GPG-key at pgp.mit.edu Id 0x8AA3392C
Index: distributors/email_distributor.py
===================================================================
--- distributors/email_distributor.py (revision 3540)
+++ distributors/email_distributor.py (working copy)
@@ -273,7 +273,8 @@
def _transmit(self, smtpfrom, addresses, message):
smtp = smtplib.SMTP()
smtp.connect(self.smtp_server)
- smtp.login(self.smtp_user, self.smtp_password)
+ if (self.smtp_user != ''):
+ smtp.login(self.smtp_user, self.smtp_password)
smtp.sendmail(smtpfrom, addresses, message)
smtp.quit()
@@ -313,4 +314,4 @@
preferences = prefs,
)
- return "prefs_announcer_email.html", data
\ No newline at end of file
+ return "prefs_announcer_email.html", data
signature.asc
Description: OpenPGP digital signature
