Mercurial > p > roundup > code
diff roundup/mailgw.py @ 545:d276d72ebdaf
if the attachment has no name, name it unnamed, happens with tnefs.
| author | Engelbert Gruber <grubert@users.sourceforge.net> |
|---|---|
| date | Wed, 16 Jan 2002 09:14:45 +0000 |
| parents | d32977eb8bd4 |
| children | d7b9751f8927 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Jan 16 07:20:54 2002 +0000 +++ b/roundup/mailgw.py Wed Jan 16 09:14:45 2002 +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.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 @@ # 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 @@ # # $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] #
