:doc:`MailManager <../../mailmanager>` / Client / get_archive_search_results

**************************
get_archive_search_results
**************************



.. py:method:: MailManager.Client.get_archive_search_results(**kwargs)

  

  Returns the results of a completed email archive search job.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/GetArchiveSearchResults>`_  


  **Request Syntax**
  ::

    response = client.get_archive_search_results(
        SearchId='string'
    )
    
  :type SearchId: string
  :param SearchId: **[REQUIRED]** 

    The identifier of the completed search job.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Rows': [
              {
                  'ArchivedMessageId': 'string',
                  'ReceivedTimestamp': datetime(2015, 1, 1),
                  'Date': 'string',
                  'To': 'string',
                  'From': 'string',
                  'Cc': 'string',
                  'Subject': 'string',
                  'MessageId': 'string',
                  'HasAttachments': True|False,
                  'ReceivedHeaders': [
                      'string',
                  ],
                  'InReplyTo': 'string',
                  'XMailer': 'string',
                  'XOriginalMailer': 'string',
                  'XPriority': 'string',
                  'IngressPointId': 'string',
                  'SenderHostname': 'string',
                  'SenderIpAddress': 'string',
                  'Envelope': {
                      'Helo': 'string',
                      'From': 'string',
                      'To': [
                          'string',
                      ]
                  },
                  'SourceArn': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The response containing search results from a completed archive search.

      
      

      - **Rows** *(list) --* 

        The list of email result objects matching the search criteria.

        
        

        - *(dict) --* 

          A result row containing metadata for an archived email message.

          
          

          - **ArchivedMessageId** *(string) --* 

            The unique identifier of the archived message.

            
          

          - **ReceivedTimestamp** *(datetime) --* 

            The timestamp of when the email was received.

            
          

          - **Date** *(string) --* 

            The date the email was sent.

            
          

          - **To** *(string) --* 

            The email addresses in the To header.

            
          

          - **From** *(string) --* 

            The email address of the sender.

            
          

          - **Cc** *(string) --* 

            The email addresses in the CC header.

            
          

          - **Subject** *(string) --* 

            The subject header value of the email.

            
          

          - **MessageId** *(string) --* 

            The unique message ID of the email.

            
          

          - **HasAttachments** *(boolean) --* 

            A flag indicating if the email has attachments.

            
          

          - **ReceivedHeaders** *(list) --* 

            The received headers from the email delivery path.

            
            

            - *(string) --* 
        
          

          - **InReplyTo** *(string) --* 

            The email message ID this is a reply to.

            
          

          - **XMailer** *(string) --* 

            The user agent that sent the email.

            
          

          - **XOriginalMailer** *(string) --* 

            The original user agent that sent the email.

            
          

          - **XPriority** *(string) --* 

            The priority level of the email.

            
          

          - **IngressPointId** *(string) --* 

            The ID of the ingress endpoint through which the email was received.

            
          

          - **SenderHostname** *(string) --* 

            The name of the host from which the email was received.

            
          

          - **SenderIpAddress** *(string) --* 

            
            * Mail archived with Mail Manager: The IP address of the client that connects to the ingress endpoint.
             
            * Mail sent through a configuration set with the archiving option enabled: The IP address of the client that makes the SendEmail API call.
            

            
          

          - **Envelope** *(dict) --* 

            The SMTP envelope information of the email.

            
            

            - **Helo** *(string) --* 

              The HELO used by the host from which the email was received.

              
            

            - **From** *(string) --* 

              The RCPT FROM given by the host from which the email was received.

              
            

            - **To** *(list) --* 

              All SMTP TO entries given by the host from which the email was received.

              
              

              - *(string) --* 
          
        
          

          - **SourceArn** *(string) --* 

            Specifies the archived email source, identified by either a Rule Set's ARN with an Archive action, or a Configuration Set's Archive ARN.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`MailManager.Client.exceptions.ValidationException`

  
  *   :py:class:`MailManager.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MailManager.Client.exceptions.ConflictException`

  
  *   :py:class:`MailManager.Client.exceptions.ThrottlingException`

  