def METHOD_NAME(self):
    """Writes out and forgets all headers accumulated so far.
    This is useful if you don't need a body part at all; for example,
    for a subpart of type message/rfc822 that's (mis)used to store some
    header-like information.
    """
    self._fp.writelines(self._headers)
    self._headers = []