summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a90488b)
raw | patch | inline | side by side (parent: a90488b)
author | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 May 2011 12:15:23 +0000 (12:15 +0000) | ||
committer | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 May 2011 12:15:23 +0000 (12:15 +0000) |
nosymessage used by the nosyreaction reactor.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4608 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4608 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 5d1e8fdfc7f0a09285798b8e69d44d436e938784..12d17c4df0a1e8741fad67cbedf48ac1a432031b 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
Features:
- Norwegian Bokmal translation by Christian Aastorp
+- Allow to specify additional cc and bcc emails (not roundup users) for
+ nosymessage used by the nosyreaction reactor.
2011-05-13 1.4.17 (r4605)
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 06d3a6018a1c2fcedc8d8d5f656cf8eefa104457..19b3004b102d99a117c34da4ea07f78c1c398790 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
"""
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
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')
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)