git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2127
7612ce4b-ef26-0410-bec9-
ea0150e637f0
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" .
}
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)) {