Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 5312:a4fe76fba54a
issue2550957: Duplicate emails (with patch).
Bcc and cc users passed to nosymessage are not properly recorded.
This results in duplicate emails. Patch by Trent Gamblin (trentgg).
Applied by and test added by John Rouillard.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 07 Nov 2017 20:58:48 -0500 |
| parents | 0121b2f1f041 |
| children | 62de601bdf6f |
line wrap: on
line diff
--- a/roundup/roundupdb.py Tue Nov 07 10:26:09 2017 +0100 +++ b/roundup/roundupdb.py Tue Nov 07 20:58:48 2017 -0500 @@ -330,6 +330,7 @@ for userid in cc + self.get(issueid, whichnosy): if good_recipient(userid): add_recipient(userid, sendto) + seen_message[userid] = 1 if encrypt and not pgproles: sendto['crypt'].extend (cc_emails) else: @@ -339,6 +340,7 @@ for userid in bcc: if good_recipient(userid): add_recipient(userid, bcc_sendto) + seen_message[userid] = 1 if encrypt and not pgproles: bcc_sendto['crypt'].extend (bcc_emails) else:
