Skip to content

Commit 4ad32cc

Browse files
committed
feat(backend): update hm-ews to support these headers
1 parent f62d980 commit 4ad32cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/imap/hm-ews.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,12 @@ public function get_message_list($itemIds, $include_preview = false) {
541541
'message_id' => $message->get('internetMessageId'),
542542
'x_auto_bcc' => null,
543543
'x_snoozed' => null,
544+
'x_schedule' => null,
545+
'x_profile_id' => null,
546+
'x_delivery' => null,
544547
];
545548
foreach ($message->get('internetMessageHeaders')->InternetMessageHeader as $header) {
546-
foreach (['x-gm-msgid' => 'google_msg_id', 'x-gm-thrid' => 'google_thread_id', 'x-gm-labels' => 'google_labels', 'x-auto-bcc' => 'x_auto_bcc', 'message-id' => 'message_id', 'references' => 'references', 'x-snoozed' => 'x_snoozed', 'list-archive' => 'list_archive', 'content-type' => 'content-type', 'x-priority' => 'x-priority'] as $hname => $key) {
549+
foreach (['x-gm-msgid' => 'google_msg_id', 'x-gm-thrid' => 'google_thread_id', 'x-gm-labels' => 'google_labels', 'x-auto-bcc' => 'x_auto_bcc', 'message-id' => 'message_id', 'references' => 'references', 'x-snoozed' => 'x_snoozed', 'x-schedule' => 'x_schedule', 'x-profile-id' => 'x_profile_id', 'x-delivery' => 'x_delivery', 'list-archive' => 'list_archive', 'content-type' => 'content-type', 'x-priority' => 'x-priority'] as $hname => $key) {
547550
if (strtolower($header->get('headerName')) == $hname) {
548551
$msg[$key] = (string) $header;
549552
}

0 commit comments

Comments
 (0)