email.parser.Parser.parsestr()

parsestr(text, headersonly=False)

Similar to the parse() method, except it takes a string object instead of a file-like object. Calling this method on a string is exactly equivalent to wrapping text in a StringIO instance first and calling parse().

Optional headersonly is as with the parse() method.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.