Skip to content

Commit fc2d29a

Browse files
author
Richard Jones
committed
applied (cleaned up version of) patch from feature [SF#625808]
1 parent ca92e50 commit fc2d29a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ are given with the most recent entry first.
5757
- altered Class.create() and FileClass.create() methods to make "content"
5858
property available in auditors
5959
- re-worked detectors initialisation - woohoo, no more cross-importing!
60+
- can now configure CC to author only for messages creating issues (sf
61+
feature 625808)
6062

6163

6264
2003-??-?? 0.5.6

roundup/roundupdb.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.81 2003-02-17 06:45:38 richard Exp $
18+
# $Id: roundupdb.py,v 1.82 2003-02-24 05:16:57 richard Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -130,9 +130,16 @@ def nosymessage(self, nodeid, msgid, oldvalues, whichnosy='nosy',
130130

131131
# possibly send the message to the author, as long as they aren't
132132
# anonymous
133-
if (self.db.config.MESSAGES_TO_AUTHOR == 'yes' and
134-
users.get(authid, 'username') != 'anonymous'):
135-
sendto.append(authid)
133+
if (users.get(authid, 'username') != 'anonymous' and
134+
not r.has_key(authid)):
135+
if self.db.config.MESSAGES_TO_AUTHOR == 'yes':
136+
# always CC the author of the message
137+
sendto.append(authid)
138+
recipients.append(authid)
139+
elif self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues:
140+
# only CC the author if the issue is new
141+
sendto.append(authid)
142+
recipients.append(authid)
136143
r[authid] = 1
137144

138145
# now deal with cc people.

0 commit comments

Comments
 (0)