From 5add5fcc5bd3fc78026194e7613cc63c9313d4ae Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 29 Jul 2002 22:26:29 +0000 Subject: [PATCH] support for viewing headers of message/rfc822 attachments git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3169 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/view_header.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/view_header.php b/src/view_header.php index 7bead916..9fcf8f1d 100644 --- a/src/view_header.php +++ b/src/view_header.php @@ -12,14 +12,18 @@ */ -function parse_viewheader($imapConnection,$id) { +function parse_viewheader($imapConnection,$id, $passed_ent_id) { global $uid_support; $header_full = array(); - - $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", + if (!$passed_ent_id) { + $read=sqimap_run_command ($imapConnection, "FETCH $id BODY[HEADER]", true, $a, $b, $uid_support); - + } else { + $query = "FETCH $id BODY[".$passed_ent_id.'.HEADER]'; + $read=sqimap_run_command ($imapConnection, $query, + true, $a, $b, $uid_support); + } $cnum = 0; for ($i=1; $i < count($read); $i++) { $line = htmlspecialchars($read[$i]); -- 2.25.1