class documentation
class FileMessage:
Known subclasses: twisted.mail.maildir.MaildirMessage
Constructor: FileMessage(fp, name, finalName)
Implements interfaces: twisted.mail.interfaces.IMessageSMTP
A message receiver which delivers a message to a file.
Method | __init__ |
No summary |
Method | connection |
Delete the file holding the partially received message. |
Method | eom |
At the end of message, rename the file holding the message to its final name. |
Method | line |
Write a received line to the file. |
Instance Variable | final |
See __init__ . |
Instance Variable | fp |
See __init__ . |
Instance Variable | name |
See __init__ . |
overridden in
twisted.mail.maildir.MaildirMessage
Parameters | |
fp:file-like object | The file in which to store the message while it is being received. |
name:bytes | The full path name of the temporary file. |
finalbytes | The full path name that should be given to the file holding the message after it has been fully received. |
overridden in
twisted.mail.maildir.MaildirMessage
At the end of message, rename the file holding the message to its final name.
Returns | |
Deferred which successfully results in bytes | A deferred which returns the final name of the file. |
overridden in
twisted.mail.maildir.MaildirMessage
Write a received line to the file.
Parameters | |
line:bytes | A received line. |