Convert to using 'sqimap_run_command' too.
authorbrong <brong@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 12 Jan 2002 11:25:18 +0000 (11:25 +0000)
committerbrong <brong@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 12 Jan 2002 11:25:18 +0000 (11:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2127 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index 5ae9b032c3ac71df3ff8fdf2e439d8c2bf214727..7c7d3a3e2715c0264b0dedeb738778946c6d2180 100644 (file)
@@ -147,8 +147,7 @@ do_hook('html_top');
 displayPageHeader($color, $mailbox);
 
 if (isset($view_hdr)) {
 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 '<BR>' .
         '<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="0" BORDER="0" ALIGN="CENTER">' . "\n" .
 
     echo '<BR>' .
         '<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="0" BORDER="0" ALIGN="CENTER">' . "\n" .
@@ -620,9 +619,7 @@ if ($default_use_priority) {
 }
 
 if ($show_xmailer_default) {
 }
 
 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)) {
                             $response, $readmessage);
     $mailer = substr($read[1], strpos($read[1], " "));
     if (trim($mailer)) {