Code

Add config-option "nosy" to messages_to_author setting in [nosy] section
[roundup.git] / roundup / roundupdb.py
index ddcf0c37ccaa092ee7b64156a10165036808f7bd..1ce6772f6088ade6d766936008acee08f7ff806c 100644 (file)
@@ -285,7 +285,9 @@ class IssueClass:
         # anonymous
         if (good_recipient(authid) and
             (self.db.config.MESSAGES_TO_AUTHOR == 'yes' or
-             (self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues))):
+             (self.db.config.MESSAGES_TO_AUTHOR == 'new' and not oldvalues) or
+             (self.db.config.MESSAGES_TO_AUTHOR == 'nosy' and authid in
+             self.get(issueid, whichnosy)))):
             add_recipient(authid, sendto)
 
         if authid: