Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1620:fc9dafcb62e0
set title on issues even when the email body is empty [SF#727430]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 27 Apr 2003 02:16:48 +0000 |
| parents | bc43a9677217 |
| children | 2ff95415ffb2 |
line wrap: on
line diff
--- a/roundup/mailgw.py Fri Apr 25 02:09:20 2003 +0000 +++ b/roundup/mailgw.py Sun Apr 27 02:16:48 2003 +0000 @@ -73,7 +73,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.120 2003-04-24 20:30:37 kedder Exp $ +$Id: mailgw.py,v 1.121 2003-04-27 02:16:46 richard Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -571,7 +571,6 @@ Subject was: "%s" '''%(nodeid, subject) - # Handle the arguments specified by the email gateway command line. # We do this by looping over the list of self.arguments looking for # a -C to tell us what class then the -S setting string. @@ -680,11 +679,6 @@ recipients.append(recipient) # - # XXX extract the args NOT USED WHY -- rouilj - # - subject_args = m.group('args') - - # # handle the subject argument list # # figure what the properties of this Class are @@ -703,6 +697,11 @@ Subject was: "%s" '''%(errors, subject) + + # set the issue title to the subject + if properties.has_key('title') and not issue_props.has_key('title'): + issue_props['title'] = title.strip() + # # handle message-id and in-reply-to # @@ -876,10 +875,6 @@ # pre-load the messages list props['messages'] = [message_id] - # set the title to the subject - if properties.has_key('title') and not props.has_key('title'): - props['title'] = title - # # perform the node change / create #
