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, ...@@ -1371,7 +1371,8 @@ amd_envelope_date (envelope_t envelope, char *buf, size_t len,
1371 1371
1372 if ((status = message_get_header (msg, &hdr)) != 0) 1372 if ((status = message_get_header (msg, &hdr)) != 0)
1373 return status; 1373 return status;
1374 if (header_aget_value (hdr, MU_HEADER_ENV_DATE, &from)) 1374 if (header_aget_value (hdr, MU_HEADER_ENV_DATE, &from)
1375 && header_aget_value (hdr, MU_HEADER_DELIVERY_DATE, &from))
1375 return ENOSYS; 1376 return ENOSYS;
1376 1377
1377 /* Format: "sender date" */ 1378 /* Format: "sender date" */
......