Mercurial > p > roundup > code
diff roundup/mailgw.py @ 3023:a25de53435b1
don't set the title to nothing from incoming mail (thanks Bruce Guenter)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 03 Jan 2005 02:52:00 +0000 |
| parents | 98e6219ddb83 |
| children | 57b60bda9473 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Dec 22 06:58:36 2004 +0000 +++ b/roundup/mailgw.py Mon Jan 03 02:52:00 2005 +0000 @@ -72,7 +72,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.159 2004-11-17 22:16:29 richard Exp $ +$Id: mailgw.py,v 1.160 2005-01-03 02:52:00 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -845,8 +845,10 @@ # set the issue title to the subject - if properties.has_key('title') and not issue_props.has_key('title'): - issue_props['title'] = title.strip() + title = title.strip() + if (title and properties.has_key('title') and not + issue_props.has_key('title')): + issue_props['title'] = title # # handle message-id and in-reply-to
