'Return the message\'s body text as string.  This undoes a
Content-Transfer-Encoding, but does not interpret other MIME
features (e.g. multipart messages).  To suppress decoding,
pass 0 as an argument.'

def getbodytext(self, decode=1):

    self.fp.seek(self.startofbody)
    encoding = self.getencoding()
    if ((not decode) or (encoding in ('', '7bit', '8bit', 'binary'))):
        return self.fp.read()
    try:
        from cStringIO import StringIO
    except ImportError:
        from StringIO import StringIO
    output = StringIO()
    mimetools.decode(self.fp, output, encoding)
    return output.getvalue()
