Message241
If "rich text" formatted email is sent to the email
gateway from outlook express, and the email also has
attachments, the actual text of the message is dropped.
Outlook express does something like this:
Content-Type: multipart/mixed;
Content-Type: multipart/alternative;
Content-Type: text/plain;
Content-Type: text/html;
Content-Type: 4whatevers/attached;
Here is a diff for the patch
===================
.\..\ru0.4.1\roundup\mailgw.py
--- mailgw.py Thu Mar 14 23:59:24 2002
+++ ..\..\ru0.4.1\roundup\mailgw.py Fri May 31
00:09:10 2002
@@ -547,6 +547,23 @@
break
# parse it
subtype = part.gettype()
+
+ # outlook express patch
+ # if multipart/alternative,
+ # get the first text/plain
+ if subtype == 'multipart/alternative':
+ # skip over the intro to the first boundary
+ p = part.getPart()
+ while 1:
+ p = part.getPart()
+ if p is None:
+ break
+ st = p.gettype()
+ if st == 'text/plain':
+ subtype = st
+ part = p
+ break
+
if subtype == 'text/plain' and not content:
# The first text/plain part is the message
content.
content = self.get_part_data_decoded
(part) |
|
Date |
User |
Action |
Args |
2009-02-03 14:20:01 | admin | link | issue562686 messages |
2009-02-03 14:20:01 | admin | create | |
|