Skip to content

Commit 53187e6

Browse files
OpenPGP: Extends newissuecopy.py to encrypt if configured.
resolves issue2550945
1 parent a317e4e commit 53187e6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ Fixed:
452452
directory is not searched. See:
453453
https://sourceforge.net/p/roundup/mailman/message/35773357/
454454
subject is "showing template sources to all".
455+
- issue2550945: OpenPGP: Extends newissuecopy.py to encrypt if configured.
456+
(Bernhard Reiter)
457+
455458

456459
2016-01-11: 1.5.1
457460

detectors/newissuecopy.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@
55
def newissuecopy(db, cl, nodeid, oldvalues):
66
''' Copy a message about new issues to a team address.
77
'''
8+
# get relevant crypto settings
9+
encrypt = db.config.PGP_ENABLE and db.config.PGP_ENCRYPT
10+
811
# so use all the messages in the create
912
change_note = cl.generateCreateNote(nodeid)
1013

1114
# send a copy to the nosy list
1215
for msgid in cl.get(nodeid, 'messages'):
1316
try:
14-
# note: last arg must be a list
15-
cl.send_message(nodeid, msgid, change_note, ['[email protected]'])
17+
# note: fourth arg must be a list
18+
cl.send_message(nodeid, msgid, change_note,
19+
20+
crypt=encrypt)
1621
except roundupdb.MessageSendError, message:
1722
raise roundupdb.DetectorError, message
1823

0 commit comments

Comments
 (0)