2.2.3.7.1 Reading Delivery Status Notification Messages

When reading delivery status notifications, as specified in [RFC3464], the contents of the message/delivery-status body part are processed as follows:

  1. The MIME reader finds the Action field with the highest severity value and sets the value of the PidTagMessageClass properties ([MS-OXCMSG] section 2.2.1.3) as specified in section 2.2.3.7.1.1.

  2. The MIME reader writes the value of the Reporting-MTA field to the PidTagReportingMessageTransferAgent property ([MS-OXOMSG] section 2.2.2.35) on the message.

  3. For each set of per-recipient delivery status notification fields, as specified in [RFC3464] section 2.3:

    1. If the value of the Action field does not match the highest severity value found in step 1, the MIME reader SHOULD<198> skip processing of this set of per-recipient delivery status notification fields and continue processing the next set.

    2. The MIME reader adds an entry to the Message object's recipient table.

    3. If the Remote-MTA field is present, the MIME reader writes the portion of its value that corresponds to the mta-name ABNF rule specified in [RFC3464] section 2.3.5 to the PidTagRemoteMessageTransferAgent property ([MS-OXOMSG] section 2.2.2.34) on the recipient.

    4. If the X-Supplementary-Info field is present, the MIME reader writes its value to the PidTagSupplementaryInfo property ([MS-OXOMSG] section 2.2.2.36) on the recipient. If the X-Supplementary-Info field is not present, the MIME reader calculates a value as specified in section 2.2.3.7.1.2 and writes the value to the PidTagSupplementaryInfo property.

    5. The MIME reader sets the value of the PidTagReportTime property ([MS-OXCSPAM] section 2.2.2.6) on the recipient to the sent time of the message.

    6. If the value of the Action field is not "failed", the MIME reader sets the value of the PidTagDeliverTime property ([MS-OXOMSG] section 2.2.2.29) on the recipient to the sent time of the message.

    7. If the value of the Action field is "failed", the MIME reader processes the value of the Status field as specified in section 2.2.3.7.1.3.