From: grubert Date: Wed, 16 Jan 2002 09:14:45 +0000 (+0000) Subject: . if the attachment has no name, name it unnamed, happens with tnefs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ee11c75b928311dbe1b984a6f34d5b23fe6959b;p=roundup.git . if the attachment has no name, name it unnamed, happens with tnefs. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@557 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/mailgw.py b/roundup/mailgw.py index 9c1bac4..8c81e6a 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.53 2002-01-16 07:20:54 richard Exp $ +$Id: mailgw.py,v 1.54 2002-01-16 09:14:45 grubert Exp $ ''' @@ -538,6 +538,8 @@ not find a text/plain part to use. # files = [] for (name, mime_type, data) in attachments: + if not name: + name = "unnamed" files.append(self.db.file.create(type=mime_type, name=name, content=data)) @@ -747,6 +749,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), # # $Log: not supported by cvs2svn $ +# Revision 1.53 2002/01/16 07:20:54 richard +# simple help command for mailgw +# # Revision 1.52 2002/01/15 00:12:40 richard # #503340 ] creating issue with [asignedto=p.ohly] #