From 141a16b217c594cc05a49267e13935e2f21b2be2 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 16 Aug 2002 12:40:27 +0000 Subject: [PATCH] fetch header in case of message/rfc822 attachments to let list-commands work and to see xmailer and priority information git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3325 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 32696e37..88fae555 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -584,8 +584,10 @@ $messages[$uidvalidity][$passed_id] = $message; if (isset($passed_ent_id)) { $message = $message->getEntity($passed_ent_id); - $message->id = $passed_id; - $message->mailbox = $mailbox; + $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY[$passed_ent_id.HEADER]", true, $response, $msg, $uid_support); + $rfc822_header = new rfc822_header(); + $rfc822_header->parseHeader($read); + $message->rfc822_header = $rfc822_header; } else { $passed_ent_id = 0; } -- 2.25.1