X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_messages.php;h=345221425e4823226b728df32e8ea32de9df7e68;hb=4cb1746c0df09e049ec1a79dcf76b181eb82595c;hp=551f3ff92d587ecc6d838e1c721369b84979cbe6;hpb=49c1780697e72cbe0de9524d3533f53115962fbb;p=squirrelmail.git diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 551f3ff9..34522142 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -298,6 +298,18 @@ function sqimap_get_message_header ($imap_stream, $id, $mailbox) { return $header; } +/**************************************************************************** + ** Wrapper function that reformats the entity header information. + ****************************************************************************/ +function sqimap_get_ent_header ($imap_stream, $id, $mailbox, $ent) { + $read = sqimap_run_command ($imap_stream, "FETCH $id:$id BODY[$ent.HEADER]", true, $response, $message); + $header = sqimap_get_header($imap_stream, $read); + $header->id = $id; + $header->mailbox = $mailbox; + return $header; +} + + /**************************************************************************** ** Wrapper function that returns entity headers for use by decodeMime ****************************************************************************/