twisted.mail.maildir.MaildirMessage(mail.FileMessage)
class documentationtwisted.mail.maildir
(View In Hierarchy)
A message receiver which adds a header and delivers a message to a file whose name includes the size of the message.
Instance Variable | size | The number of octets in the message. (type: int ) |
Method | __init__ | |
Method | lineReceived | Write a line to the file. |
Method | eomReceived | At the end of message, rename the file holding the message to its final name concatenated with the size of the file. |
Inherited from FileMessage:
Instance Variable | fp | See __init__ . |
Instance Variable | name | See __init__ . |
Instance Variable | finalName | See __init__ . |
Method | connectionLost | Delete the file holding the partially received message. |
Parameters | address | The address of the message recipient. (type: bytes ) |
fp | The file in which to store the message while it is being received. (type: file-like object) | |
a | Positional arguments for FileMessage.__init__ . (type: 2-tuple
of (0) bytes ,
(1) bytes ) | |
kw | Keyword arguments for FileMessage.__init__ . (type: dict ) |