class twisted.mail.maildir.MaildirMessage(mail.FileMessage): (source)
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. |
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. |
Instance Variable | finalName | Undocumented |
Inherited from FileMessage:
Instance Variable | fp | See __init__ . |
Instance Variable | name | 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 ) |
Write a line to the file.
Parameters | line | A received line. (type: bytes ) |