Commit a523a502 a523a5028a4ae29af9a47be95d2dfe4eb63b4b4d by Sergey Poznyakoff

(amd_envelope_date): Use Delivery-Date if X-Envelope-Date is not present.

1 parent 5f33526b
......@@ -1371,7 +1371,8 @@ amd_envelope_date (envelope_t envelope, char *buf, size_t len,
if ((status = message_get_header (msg, &hdr)) != 0)
return status;
if (header_aget_value (hdr, MU_HEADER_ENV_DATE, &from))
if (header_aget_value (hdr, MU_HEADER_ENV_DATE, &from)
&& header_aget_value (hdr, MU_HEADER_DELIVERY_DATE, &from))
return ENOSYS;
/* Format: "sender date" */
......