comparison roundup/roundupdb.py @ 4547:d9d7319afffa

Add config-option "nosy" to messages_to_author setting in [nosy] section... ...of config: This will send a message to the author only in the case where the author is on the nosy-list (either added earlier or via the add_author setting). Current config-options for this setting will send / not send to author without considering the nosy list. [[Posted on behalf of Dr. Schlatterbeck during the git conversion.]] committer: Eric S. Raymond <esr@thyrsus.com>
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 19 Oct 2011 11:32:20 -0400
parents 46239c21a1eb
children dfbc0cfa9811
comparison
equal deleted inserted replaced
4546:d39c37fd2940 4547:d9d7319afffa
283 283
284 # possibly send the message to the author, as long as they aren't 284 # possibly send the message to the author, as long as they aren't
285 # anonymous 285 # anonymous
286 if (good_recipient(authid) and 286 if (good_recipient(authid) and
287 (self.db.config.MESSAGES_TO_AUTHOR == 'yes' or 287 (self.db.config.MESSAGES_TO_AUTHOR == 'yes' or
288 (self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues))): 288 (self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues) or
289 (self.db.config.MESSAGES_TO_AUTHOR == 'nosy' and authid in
290 self.get(issueid, whichnosy)))):
289 add_recipient(authid, sendto) 291 add_recipient(authid, sendto)
290 292
291 if authid: 293 if authid:
292 seen_message[authid] = 1 294 seen_message[authid] = 1
293 295

Roundup Issue Tracker: http://roundup-tracker.org/