@@ -194,7 +194,7 @@ def addmessage(self, issueid, summary, text):
194194 """
195195
196196 def nosymessage (self , issueid , msgid , oldvalues , whichnosy = 'nosy' ,
197- from_address = None , cc = [], bcc = []):
197+ from_address = None , cc = [], bcc = [], cc_emails = [], bcc_emails = [] ):
198198 """Send a message to the members of an issue's nosy list.
199199
200200 The message is sent only to users on the nosy list who are not
@@ -213,6 +213,12 @@ def nosymessage(self, issueid, msgid, oldvalues, whichnosy='nosy',
213213 message to that may not be specified in the message's recipients
214214 list. These recipients will not be included in the To: or Cc:
215215 address lists.
216+
217+ The cc_emails and bcc_emails arguments take a list of additional
218+ recipient email addresses (just the mail address not roundup users)
219+ this can be useful for sending to additional email addresses which are no
220+ roundup users. These arguments are currently not used by roundups
221+ nosyreaction but can be used by customized (nosy-)reactors.
216222 """
217223 if msgid :
218224 authid = self .db .msg .get (msgid , 'author' )
@@ -267,11 +273,13 @@ def good_recipient(userid):
267273 for userid in cc + self .get (issueid , whichnosy ):
268274 if good_recipient (userid ):
269275 add_recipient (userid , sendto )
276+ sendto .extend (cc_emails )
270277
271278 # now deal with bcc people.
272279 for userid in bcc :
273280 if good_recipient (userid ):
274281 add_recipient (userid , bcc_sendto )
282+ bcc_sendto .extend (bcc_emails )
275283
276284 if oldvalues :
277285 note = self .generateChangeNote (issueid , oldvalues )
0 commit comments