From 451a5790a1c89cef8c401c15497949f07db10185 Mon Sep 17 00:00:00 2001 From: brong Date: Sat, 12 Jan 2002 11:25:18 +0000 Subject: [PATCH] Convert to using 'sqimap_run_command' too. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2127 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 5ae9b032..7c7d3a3e 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -147,8 +147,7 @@ do_hook('html_top'); displayPageHeader($color, $mailbox); if (isset($view_hdr)) { - fputs ($imapConnection, sqimap_session_id() . " FETCH $passed_id BODY[HEADER]\r\n"); - $read = sqimap_read_data ($imapConnection, sqimap_session_id(), true, $a, $b); + $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY[HEADER]", true, $a, $b); echo '
' . '' . "\n" . @@ -620,9 +619,7 @@ if ($default_use_priority) { } if ($show_xmailer_default) { - fputs ($imapConnection, sqimap_session_id() . - " FETCH $passed_id BODY.PEEK[HEADER.FIELDS (X-Mailer User-Agent)]\r\n"); - $read = sqimap_read_data ($imapConnection, sqimap_session_id(), true, + $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY.PEEK[HEADER.FIELDS (X-Mailer User-Agent)]", true, $response, $readmessage); $mailer = substr($read[1], strpos($read[1], " ")); if (trim($mailer)) { -- 2.25.1