Skip to content

Commit 639287c

Browse files
author
Richard Jones
committed
fix messageid generated when msgid is None for send_message [SF#987933]
1 parent 344219a commit 639287c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roundup/roundupdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.111 2004-07-05 11:28:25 a1s Exp $
18+
# $Id: roundupdb.py,v 1.112 2004-07-14 01:10:51 richard Exp $
1919

2020
"""Extending hyperdb with types specific to issue-tracking.
2121
"""
@@ -237,7 +237,8 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
237237
messageid = "<%s.%s.%s%s@%s>"%(time.time(), random.random(),
238238
self.classname, nodeid,
239239
self.db.config.MAIL_DOMAIN)
240-
messages.set(msgid, messageid=messageid)
240+
if msgid is not None:
241+
messages.set(msgid, messageid=messageid)
241242

242243
# compose title
243244
cn = self.classname

0 commit comments

Comments
 (0)