Go to the latest version of this document.

# ``twisted`.`mail`.`imap4`.`_FetchParser`.`Body``

class documentation

`class Body: (source)`

View In Hierarchy

Undocumented

Method | `__bytes__` | Undocumented
Method | `__str__` | Undocumented
Method | `getBytes` | Prepare the initial command response for a Fetch BODY request. Interpret the Fetch request from the client and return the appropriate response based on RFC 3501. This is not the body itself of the response, merely the section of the first response line that describes the body part.
Class Variable | `empty` | Undocumented
Class Variable | `header` | Undocumented
Class Variable | `mime` | Undocumented
Class Variable | `part` | Undocumented
Class Variable | `partialBegin` | Undocumented
Class Variable | `partialLength` | Undocumented
Class Variable | `peek` | Undocumented
Class Variable | `text` | Undocumented
Class Variable | `type` | Undocumented

def __bytes__(self) -> `bytes`: (source)

Undocumented

def __str__(self) -> `str`: (source)

Undocumented

def getBytes(self, length: `int | None` = None) -> `bytes`: (source)

Prepare the initial command response for a Fetch BODY request. Interpret the Fetch request from the client and return the appropriate response based on RFC 3501. This is not the body itself of the response, merely the section of the first response line that describes the body part.

empty: `bool` = (source)

Undocumented

header = (source)

Undocumented

mime = (source)

Undocumented

part: `tuple` = (source)

Undocumented

partialBegin = (source)

Undocumented

partialLength = (source)

Undocumented

peek: `bool` = (source)

Undocumented

text = (source)

Undocumented

type: `str` = (source)

Undocumented