class_docstr: A feed-style parser of email.
class_docstr_tok: ["A","feed-style","parser","of","email","."]
code: def _new_message(self):
      if self._old_style_factory:
          msg = self._factory()
      else:
          msg = self._factory(policy=self.policy)
      if (
          self._cur
          and self._cur.get_content_type() == "multipart/digest"
      ):
          msg.set_default_type("message/rfc822")
      if self._msgstack:
          self._msgstack[-1].attach(msg)
      self._msgstack.append(msg)
      self._cur = msg
      self._last = msg
  
imports: import re
  from email import errors
  from email._policybase import compat32
  from collections import deque
  from io import StringIO
label_desc: Use image node_id 6 for calling the FeedParser obj's underlying member method code with example usage: obj._new_message() without return types