<?xml version="1.0" encoding="UTF-8"?>
<amapi>
  <request>
    <action>&$(ACTION::xmlapi);</action>
    <status>&$(STATUS::xmlapi);</status>
    <errorCode>&$(ERROR_CODE::xmlapi);</errorCode>
  </request>
  <response>
    <mailbox>&$(IMAP_NAME::xmlapi);</mailbox>
    <folderName>&$(AM_NAME::xmlapi);</folderName>
    <imapUid>&$(UID::xmlapi);</imapUid>
    <rfc822Size>&$(SIZE::xmlapi);</rfc822Size>
    <internalDate>
      <rfc822Date>&$(I_RFC822DATE::xmlapi);</rfc822Date>
      <year>&$(I_YEAR::xmlapi);</year>
      <month>&$(I_MONTH::xmlapi);</month>
      <day>&$(I_DAY::xmlapi);</day>
      <week>&$(I_WEEK::xmlapi);</week>
      <hour>&$(I_HOUR::xmlapi);</hour>
      <minute>&$(I_MINUTE::xmlapi);</minute>
      <second>&$(I_SECOND::xmlapi);</second>
      <timezone>&$(I_TIMEZONE::xmlapi);</timezone>
    </internalDate>
    <imapFlag>
      <seen>&$(SEEN::xmlapi);</seen>
    </imapFlag>
    <mailHeader>
      <sendDate>
        <rfc822Date>&$(S_RFC822DATE::xmlapi);</rfc822Date>
        <year>&$(S_YEAR::xmlapi);</year>
        <month>&$(S_MONTH::xmlapi);</month>
        <day>&$(S_DAY::xmlapi);</day>
        <week>&$(S_WEEK::xmlapi);</week>
        <hour>&$(S_HOUR::xmlapi);</hour>
        <minute>&$(S_MINUTE::xmlapi);</minute>
        <second>&$(S_SECOND::xmlapi);</second>
        <timezone>&$(S_TIMEZONE::xmlapi);</timezone>
      </sendDate>
      <fromList>
        &$(READMAIL_FROM);
      </fromList>
      <toList>
        &$(READMAIL_TO);
      </toList>
      <ccList>
        &$(READMAIL_CC);
      </ccList>
      <bccList>
        &$(READMAIL_BCC);
      </bccList>
      <subject>&$(READMAIL_SUBJECT::xmlapi);</subject>
    </mailHeader>
    <mailContent>&$(READMAIL_TEXT::xmlapi);</mailContent>
    <attachedFiles>
      &$(ATTACHED_FILE);
    </attachedFiles>
  </response>
</amapi>
