Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 4497:29576edb45d5
Allow to specify additional cc and bcc emails (not roundup users)...
...for nosymessage used by the nosyreaction reactor.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Mon, 23 May 2011 12:15:23 +0000 |
| parents | 1613754d2646 |
| children | 62239a524beb |
line wrap: on
line diff
--- a/roundup/roundupdb.py Mon May 23 09:52:46 2011 +0000 +++ b/roundup/roundupdb.py Mon May 23 12:15:23 2011 +0000 @@ -194,7 +194,7 @@ """ def nosymessage(self, issueid, msgid, oldvalues, whichnosy='nosy', - from_address=None, cc=[], bcc=[]): + from_address=None, cc=[], bcc=[], cc_emails = [], bcc_emails = []): """Send a message to the members of an issue's nosy list. The message is sent only to users on the nosy list who are not @@ -213,6 +213,12 @@ message to that may not be specified in the message's recipients list. These recipients will not be included in the To: or Cc: address lists. + + The cc_emails and bcc_emails arguments take a list of additional + recipient email addresses (just the mail address not roundup users) + this can be useful for sending to additional email addresses which are no + roundup users. These arguments are currently not used by roundups + nosyreaction but can be used by customized (nosy-)reactors. """ if msgid: authid = self.db.msg.get(msgid, 'author') @@ -267,11 +273,13 @@ for userid in cc + self.get(issueid, whichnosy): if good_recipient(userid): add_recipient(userid, sendto) + sendto.extend (cc_emails) # now deal with bcc people. for userid in bcc: if good_recipient(userid): add_recipient(userid, bcc_sendto) + bcc_sendto.extend (bcc_emails) if oldvalues: note = self.generateChangeNote(issueid, oldvalues)
