Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 2569:eca3383a27a6
fix messageid generated when msgid is None for send_message [SF#987933]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 14 Jul 2004 01:10:51 +0000 |
| parents | f313ea652571 |
| children | 85b9dcf908a2 |
line wrap: on
line diff
--- a/roundup/roundupdb.py Tue Jul 13 12:15:26 2004 +0000 +++ b/roundup/roundupdb.py Wed Jul 14 01:10:51 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.111 2004-07-05 11:28:25 a1s Exp $ +# $Id: roundupdb.py,v 1.112 2004-07-14 01:10:51 richard Exp $ """Extending hyperdb with types specific to issue-tracking. """ @@ -237,7 +237,8 @@ messageid = "<%s.%s.%s%s@%s>"%(time.time(), random.random(), self.classname, nodeid, self.db.config.MAIL_DOMAIN) - messages.set(msgid, messageid=messageid) + if msgid is not None: + messages.set(msgid, messageid=messageid) # compose title cn = self.classname
