comparison rhodecode/model/notification.py @ 2387:7d517a35b6c9 beta

Don't send emails to person who comment on changeset
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 04 Jun 2012 22:03:40 +0200
parents a27e4d44237e
children 91fae60bf2b6 9b623dcddb02
comparison
equal deleted inserted replaced
2386:ed8c2fc8dd3b 2387:7d517a35b6c9
101 ) 101 )
102 102
103 if with_email is False: 103 if with_email is False:
104 return notif 104 return notif
105 105
106 # send email with notification 106 #don't send email to person who created this comment
107 for rec in recipients_objs: 107 rec_objs = set(recipients_objs).difference(set([created_by_obj]))
108
109 # send email with notification to all other participants
110 for rec in rec_objs:
108 email_subject = NotificationModel().make_description(notif, False) 111 email_subject = NotificationModel().make_description(notif, False)
109 type_ = type_ 112 type_ = type_
110 email_body = body 113 email_body = body
111 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} 114 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)}
112 kwargs.update(email_kwargs) 115 kwargs.update(email_kwargs)