MailManager / Client / get_archive_message_content

get_archive_message_content#

MailManager.Client.get_archive_message_content(**kwargs)#

Returns the textual content of a specific email message stored in the archive. Attachments are not included.

See also: AWS API Documentation

Request Syntax

response = client.get_archive_message_content(
    ArchivedMessageId='string'
)
Parameters:

ArchivedMessageId (string) –

[REQUIRED]

The unique identifier of the archived email message.

Return type:

dict

Returns:

Response Syntax

{
    'Body': {
        'Html': 'string',
        'MessageMalformed': True|False,
        'Text': 'string'
    }
}

Response Structure

  • (dict) –

    The response containing the textual content of the requested archived email message.

    • Body (dict) –

      The textual body content of the email message.

      • Html (string) –

        The HTML body content of the message.

      • MessageMalformed (boolean) –

        A flag indicating if the email was malformed.

      • Text (string) –

        The plain text body content of the message.

Exceptions

  • MailManager.Client.exceptions.ValidationException

  • MailManager.Client.exceptions.AccessDeniedException

  • MailManager.Client.exceptions.ThrottlingException