class documentation
class FileWrapper: (source)
Constructor: FileWrapper(filename)
Implements interfaces: twisted.mail.interfaces.IMessageSMTP
A message receiver which delivers a message to a file.
| Method | __init__ |
No summary |
| Method | __str__ |
Build a string representation of this FileWrapper instance. |
| Method | connection |
Close the temporary file when the connection is lost. |
| Method | eom |
Handle end of message by writing the message to the file. |
| Method | line |
Write a received line to the temporary file. |
| Instance Variable | finalname |
The name of the file in which the message should be stored. |
| Instance Variable | fp |
A file used for temporary storage of the message. |
Build a string representation of this FileWrapper instance.
| Returns | |
bytes | A string containing the file name of the message. |
Handle end of message by writing the message to the file.
| Returns | |
Deferred which successfully results in bytes | A deferred which succeeds with the name of the file to which the message has been stored or fails if the message cannot be saved to the file. |