Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 6425:443f80297ac1
send_message allows setting message sender via authid.
Adapted from: http://hg.python.org/tracker/roundup/rev/ad317e38
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 27 May 2021 15:54:55 -0400 |
| parents | 8497bf3f23a1 |
| children | cf1b51a3a368 |
line wrap: on
line diff
--- a/roundup/roundupdb.py Thu May 27 15:06:28 2021 -0400 +++ b/roundup/roundupdb.py Thu May 27 15:54:55 2021 -0400 @@ -425,7 +425,7 @@ return msg def send_message(self, issueid, msgid, note, sendto, from_address=None, - bcc_sendto=[], subject=None, crypt=False, + bcc_sendto=[], authid=None, subject=None, crypt=False, add_headers={}): '''Actually send the nominated message from this issue to the sendto recipients, with the note appended. It's possible to add @@ -457,7 +457,9 @@ title = self.get(issueid, 'title') or '%s message copy' % cn # figure author information - if msgid: + if authid: + pass + elif msgid: authid = messages.get(msgid, 'author') else: authid = self.db.getuid()
