100
100
# E.g the outer Content-Type: was text/html
102
102
body = part.get_payload(decode=True)
103
108
# text/plain parts better have string payloads
104
109
assert isinstance(body, StringType) or isinstance(body, UnicodeType)
105
110
lines = body.splitlines()