We are using
WorldPilot 1.1 alpha3,
Zope 2.1.6,
Python 1.5.13 (Linux RPM) with
Mercur 3.2 service pack 1
(Mercur is at http://www.atrium-software.com/pub/products_e.cfm\)
Mercur is not sending the three bodystructure RFC2060 extension fields (Content-MD5, Content-Disposition, Content-Language); so we must check to make sure fields exist to avoid getting an exception which causes you to not see the "text" for an email, for instance.
I have attempted to address this by the following code in WorldPilot.py at about line 696 in makePartList
function:
if BodyType=="TEXT":
BodyLines=ST[7]
offset=1
#above code provided for context--not new
#start of new code to fix incompatiblity with Mercur
BodyMD5 = None
BodyDisposition = None
BodyLanguage = None
#Mercur doesn't return these three RFC2060 extension fields;
#must check to make sure fields exist to avoid getting an exception.
if len(ST) > 7 + offset:
BodyMD5=ST[7+offset]
if len(ST) > 8 + offset:
BodyDisposition=self.makePartDisposition(ST[8+offset])
if len(ST) > 9 + offset:
BodyLanguage=ST[9+offset]
#end of code added/modified to address incompatibility with Mercur
#code below provided for context only--not new
BodyText=None
BodyHeader=None
BodyMime=None