From 3748428ce8e07bcd178f8445f50e34a9015561aa Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 28 May 2002 14:22:31 +0000 Subject: [PATCH] Added function to get mime-entity headers git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2883 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 603dc2c5..08ba6e30 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -619,6 +619,16 @@ function sqimap_get_entity_header ($imap_stream, &$read, &$type0, &$type1, &$bou $charset = $header["CHARSET"]; $filename = $header["FILENAME"]; } + +/* function to get the mime headers */ +function sqimap_get_mime_ent_header ($imap_stream, $id, $mailbox, $ent) { + $read = sqimap_run_command ($imap_stream, "FETCH $id:$id BODY[$ent.MIME]", true, $response, $message); + $header = sqimap_get_header($imap_stream, $read); + $header->id = $id; + $header->mailbox = $mailbox; + return $header; +} + */ /* Queries the IMAP server and gets all header information. */ function sqimap_get_header ($imap_stream, $read) { -- 2.25.1