Skip to content

Commit 09c27f8

Browse files
author
Richard Jones
committed
[SF#562686] email attachments from outlook express
1 parent bed5f4a commit 09c27f8

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Fixed:
1111
. #516854 ] "My Issues" and redisplay
1212
. htmltemplate do_menu with additional properties had problems when they
1313
weren't set
14+
. #562686 ] email attachments from outlook express
1415

1516

1617
2002-06-24 0.4.2

roundup/mailgw.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.74 2002-05-29 01:16:17 richard Exp $
76+
$Id: mailgw.py,v 1.74.2.1 2002-07-22 22:03:01 richard Exp $
7777
'''
7878

7979

@@ -595,6 +595,16 @@ def handle_message(self, message):
595595
name = mailmess.getheader('subject')
596596
part.fp.seek(i)
597597
attachments.append((name, 'message/rfc822', part.fp.read()))
598+
elif subtype == 'multipart/alternative':
599+
# probably from outlook express - get the text/plain
600+
# alternative
601+
while 1:
602+
p = part.getPart()
603+
if p is None:
604+
break
605+
if p.gettype() == 'text/plain':
606+
content = self.get_part_data_decoded(p)
607+
break
598608
else:
599609
# try name on Content-Type
600610
name = part.getparam('name')
@@ -765,6 +775,18 @@ def parseContent(content, keep_citations, keep_body,
765775

766776
#
767777
# $Log: not supported by cvs2svn $
778+
# Revision 1.74 2002/05/29 01:16:17 richard
779+
# Sorry about this huge checkin! It's fixing a lot of related stuff in one go
780+
# though.
781+
#
782+
# . #541941 ] changing multilink properties by mail
783+
# . #526730 ] search for messages capability
784+
# . #505180 ] split MailGW.handle_Message
785+
# - also changed cgi client since it was duplicating the functionality
786+
# . build htmlbase if tests are run using CVS checkout (removed note from
787+
# installation.txt)
788+
# . don't create an empty message on email issue creation if the email is empty
789+
#
768790
# Revision 1.73 2002/05/22 04:12:05 richard
769791
# . applied patch #558876 ] cgi client customization
770792
# ... with significant additions and modifications ;)

0 commit comments

Comments
 (0)