Part of lp.services.messages.interfaces.message View In Hierarchy
Method | get | Return a list of IMessage's with the given rfc822msgid. |
Method | fromText | Construct a Message from a text string and return it. |
Method | fromEmail | Construct a Message from an email message and return it. |
If no such messages exist, raise NotFoundError.
Construct a Message from an email message and return it.
Parameters | email_message | The original email as a string. |
owner | Specifies the owner of the new Message. The default is calculated using the From: or Reply-To: headers, and will raise a UnknownSender error if they cannot be found. | |
filealias | The LibraryFileAlias of the raw email if it has
already been uploaded to the Librarian. | |
parsed_message | An email.message.Message instance. If given, it is used internally instead of building one from the raw email_message. This is purely an optimization step, significant in many places because the emails we are handling may contain huge attachments and we should avoid reparsing them if possible. | |
fallback_parent | The parent message if it could not be identified. | |
date_created | Force a created date for the message. If specified, the value in the Date field in the passed message will be ignored. | |
restricted | If set, the LibraryFileAlias will be uploaded to
the restricted librarian. |