twisted.mail.test.test_imap.FakeyMessage(util.FancyStrMixin)
class documentationtwisted.mail.test.test_imap
(View In Hierarchy)
Implements interfaces: twisted.mail.interfaces.IMessageIMAP
Method | __init__ | Undocumented |
Method | getHeaders | Retrieve a group of message headers. |
Method | getFlags | Retrieve the flags associated with this message. |
Method | getInternalDate | Retrieve the date internally associated with this message. |
Method | getBodyFile | Retrieve a file object containing only the body of this message. |
Method | getSize | Retrieve the total size, in octets, of this message. |
Method | getUID | Retrieve the unique identifier associated with this message. |
Method | isMultipart | Indicate whether this message has subparts. |
Method | getSubPart | Retrieve a MIME sub-message |
Inherited from FancyStrMixin:
Method | __str__ | Undocumented |
Retrieve a group of message headers.
Parameters | names | The names of the headers to retrieve or omit. (type: tuple
of str ) |
negate | If True, indicates that the headers listed in names should be
omitted from the return value, rather than included. (type: bool ) | |
Returns | A mapping of header field names to header field values (type: dict ) |
Retrieve the flags associated with this message.
Returns | The flags, represented as strings. (type: iterable ) |
Retrieve the date internally associated with this message.
Returns | An RFC822-formatted date string. (type: bytes ) |
Retrieve a MIME sub-message
Parameters | part | The number of the part to retrieve, indexed from 0. (type: int ) |
Returns | The specified sub-part. (type: Any object implementing IMessageIMAPPart .) | |
Raises | IndexError | Raised if the specified part does not exist. |
TypeError | Raised if this message is not multipart. |