Mercurial > p > roundup > code
diff roundup/mailgw.py @ 895:c06dc334d81d maint-0.4
[SF#562686] email attachments from outlook express
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 22 Jul 2002 22:03:01 +0000 |
| parents | 938edfdeac6e |
| children | 456878600f38 |
line wrap: on
line diff
--- a/roundup/mailgw.py Thu Jul 18 07:03:26 2002 +0000 +++ b/roundup/mailgw.py Mon Jul 22 22:03:01 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.74 2002-05-29 01:16:17 richard Exp $ +$Id: mailgw.py,v 1.74.2.1 2002-07-22 22:03:01 richard Exp $ ''' @@ -595,6 +595,16 @@ name = mailmess.getheader('subject') part.fp.seek(i) attachments.append((name, 'message/rfc822', part.fp.read())) + elif subtype == 'multipart/alternative': + # probably from outlook express - get the text/plain + # alternative + while 1: + p = part.getPart() + if p is None: + break + if p.gettype() == 'text/plain': + content = self.get_part_data_decoded(p) + break else: # try name on Content-Type name = part.getparam('name') @@ -765,6 +775,18 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.74 2002/05/29 01:16:17 richard +# Sorry about this huge checkin! It's fixing a lot of related stuff in one go +# though. +# +# . #541941 ] changing multilink properties by mail +# . #526730 ] search for messages capability +# . #505180 ] split MailGW.handle_Message +# - also changed cgi client since it was duplicating the functionality +# . build htmlbase if tests are run using CVS checkout (removed note from +# installation.txt) +# . don't create an empty message on email issue creation if the email is empty +# # Revision 1.73 2002/05/22 04:12:05 richard # . applied patch #558876 ] cgi client customization # ... with significant additions and modifications ;)
