(self, text, headersonly=False)
return self.parse(StringIO(text), headersonly=headersonly)
Create a message structure from a string.

        Returns the root of the message structure.  Optional headersonly is a
        flag specifying whether to stop parsing after reading the headers or
        not.  The default is False, meaning it parses the entire contents of
        the file.
Create a message structure from a string.
Create a message structure from a string .
def parsestr(self, text, headersonly=False):
        """Create a message structure from a string.

        Returns the root of the message structure.  Optional headersonly is a
        flag specifying whether to stop parsing after reading the headers or
        not.  The default is False, meaning it parses the entire contents of
        the file.
        """
        return self.parse(StringIO(text), headersonly=headersonly)
def parsestr ( self , text , headersonly = False ) : return self . parse ( StringIO ( text ) , headersonly = headersonly )