[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] email/inc/class.mail_dcom_imap_sock.inc.php, 1.15.2.3
From: |
nomail |
Subject: |
[Phpgroupware-cvs] email/inc/class.mail_dcom_imap_sock.inc.php, 1.15.2.3 |
Date: |
Sat, 6 Nov 2004 17:13:45 +0100 |
Update of /email/inc
Modified Files:
Branch: Version-0_9_16-branch
class.mail_dcom_imap_sock.inc.php
date: 2004/11/06 16:13:45; author: powerstat; state: Exp; lines: +103 -103
Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: email/inc/class.mail_dcom_imap_sock.inc.php
diff -u email/inc/class.mail_dcom_imap_sock.inc.php:1.15.2.2
email/inc/class.mail_dcom_imap_sock.inc.php:1.15.2.3
--- email/inc/class.mail_dcom_imap_sock.inc.php:1.15.2.2 Wed Nov 26
23:32:59 2003
+++ email/inc/class.mail_dcom_imap_sock.inc.php Sat Nov 6 16:13:45 2004
@@ -45,7 +45,7 @@
*/
function mail_dcom()
{
- echo "<br>\n" . lang('php-imap support not installed -
exiting') . "<br>\n";
+ echo "<br />\n" . lang('php-imap support not installed
- exiting') . "<br />\n";
echo lang('contact your system administrator');
exit;
}
@@ -249,15 +249,15 @@
*/
function report_svr_data($data_array, $calling_func_name='',
$show_ok_msg=True)
{
- echo 'imap: '.$calling_func_name.': response_array line
by line:<br>';
+ echo 'imap: '.$calling_func_name.': response_array line
by line:<br />';
for ($i=0; $i<count($data_array); $i++)
{
- echo ' -- ArrayPos['.$i.'] data: '
.htmlspecialchars($data_array[$i]) .'<br>';
+ echo ' -- ArrayPos['.$i.'] data: '
.htmlspecialchars($data_array[$i]) .'<br />';
}
- echo 'imap: '.$calling_func_name.': =ENDS=
response_array line by line:<br>';
+ echo 'imap: '.$calling_func_name.': =ENDS=
response_array line by line:<br />';
if ($show_ok_msg == True)
{
- echo 'imap: '.$calling_func_name.': last server
completion line: "'.htmlspecialchars($this->server_last_ok_response).'"<br>';
+ echo 'imap: '.$calling_func_name.': last server
completion line: "'.htmlspecialchars($this->server_last_ok_response).'"<br />';
}
}
@@ -271,7 +271,7 @@
*/
function server_last_error()
{
- if ($this->debug_dcom >= 1) { echo 'imap: call to
server_last_error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
server_last_error<br />'; }
return $this->server_last_error_str;
}
@@ -286,7 +286,7 @@
function createmailbox($stream,$mailbox)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: createmailbox<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: createmailbox<br />'; }
// eventually this will use this function to call for
expiration of stale cached data, if any
//$this->folder_list_did_change();
return true;
@@ -298,7 +298,7 @@
function deletemailbox($stream,$mailbox)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: deletemailbox<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: deletemailbox<br />'; }
// eventually this will use this function to call for
expiration of stale cached data, if any
//$this->folder_list_did_change();
return true;
@@ -310,7 +310,7 @@
function renamemailbox($stream,$mailbox_old,$mailbox_new)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: renamemailbox<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: renamemailbox<br />'; }
// eventually this will use this function to call for
expiration of stale cached data, if any
//$this->folder_list_did_change();
return true;
@@ -323,7 +323,7 @@
function expunge($stream)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: expunge<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: expunge<br />'; }
return true;
}
/*!
@@ -333,7 +333,7 @@
function mailcopy($stream,$msg_list,$mailbox,$flags)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: mailcopy<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: mailcopy<br />'; }
return False;
}
/*!
@@ -343,7 +343,7 @@
function mail_move($stream,$msg_list,$mailbox)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: mail_move<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: mail_move<br />'; }
return False;
}
/*!
@@ -353,7 +353,7 @@
function noop_ping_test($stream)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: noop_ping_test<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: call to
unimplemented socket function: noop_ping_test<br />'; }
return False;
}
/*!
@@ -363,7 +363,7 @@
function append($stream, $folder = "Sent", $header, $body,
$flags = "")
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: append NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: append NOT
YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
/*!
@@ -373,7 +373,7 @@
function fetch_overview($stream_notused,$criteria,$flags)
{
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap:
fetch_overview NOT YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
fetch_overview NOT YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
/*
@@ -417,7 +417,7 @@
{
$empty_return=array();
// not yet implemented
- if ($this->debug_dcom >= 1) { echo 'imap: search NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: search NOT
YET IMPLEMENTED imap sockets function<br />'; }
return $empty_return;
}
@@ -447,7 +447,7 @@
*/
function open ($fq_folder, $user, $pass, $flags='')
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
open<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
open<br />'; }
// fq_folder is a "fully qualified folder", seperate
the parts:
$svr_data = array();
@@ -455,34 +455,34 @@
$folder = $svr_data['folder'];
$server = $svr_data['server'];
$port = $svr_data['port'];
- if ($this->debug_dcom >= 1) { echo 'imap: open:
svr_data:<br>'.serialize($svr_data).'<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: open:
svr_data:<br />'.serialize($svr_data).'<br />'; }
if (!$this->open_port($server,$port,15))
{
- echo '<p><center><b>' .lang('There was an error
trying to connect to your IMAP server.<br>Please contact your admin to check
the servername, username or password.') .'</b></center>';
+ echo '<p><center><b>' .lang('There was an error
trying to connect to your IMAP server.<br />Please contact your admin to check
the servername, username or password.') .'</b></center>';
echo('<CENTER><A
HREF="'.$GLOBALS['phpgw']->link('/home.php').'">'.lang('Click here to
continue').'...</A></CENTER>'); //cbsman
$GLOBALS['phpgw']->common->phpgw_exit();
}
else
{
$junk = $this->read_port();
- if ($this->debug_dcom >= 2) { echo 'imap: open:
open port server hello: "' .htmlspecialchars($this->show_crlf($junk)) .'"<br>';
}
+ if ($this->debug_dcom >= 2) { echo 'imap: open:
open port server hello: "' .htmlspecialchars($this->show_crlf($junk)) .'"<br
/>'; }
}
- if ($this->debug_dcom >= 2) { echo 'imap: open: user
and pass NO quotemeta: user ['. htmlspecialchars($user).'] pass
['.htmlspecialchars($pass).']<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: open: user
and pass WITH quotemeta: user ['. htmlspecialchars(quotemeta($user)).'] pass
['.htmlspecialchars(quotemeta($pass)).']<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: open: user
and pass NO quotemeta: user ['. htmlspecialchars($user).'] pass
['.htmlspecialchars($pass).']<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: open: user
and pass WITH quotemeta: user ['. htmlspecialchars(quotemeta($user)).'] pass
['.htmlspecialchars(quotemeta($pass)).']<br />'; }
$cmd_tag = 'L001';
$full_command = $cmd_tag.' LOGIN "'.$user.'"
"'.$pass.'"';
$expecting = $cmd_tag; // may be followed by OK, NO, or
BAD
- if ($this->debug_dcom >= 2) { echo 'imap: open:
write_port: '. htmlspecialchars($full_command) .'<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: open:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or
BAD<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: open:
write_port: '. htmlspecialchars($full_command) .'<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: open:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br
/>'; }
if(!$this->write_port($full_command))
{
- if ($this->debug_dcom >= 1) { echo 'imap: open:
LEAVING with error: could not write_port<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: open:
LEAVING with error: could not write_port<br />'; }
$this->error();
// does $this->error() ever continue onto next
line?
return False;
@@ -496,27 +496,27 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: open: error in Open<br>';
- echo 'imap: open: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: open: error in Open<br />';
+ echo 'imap: open: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING Open with error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING Open with error<br />'; }
return False;
}
else
{
if ($this->debug_dcom >= 2) {
$this->report_svr_data($response_array, 'open', True); }
- if ($this->debug_dcom >= 1) { echo 'imap: open:
Successful IMAP Login<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: open:
Successful IMAP Login<br />'; }
}
// now that we have logged in, php's IMAP_OPEN would
now select the desired folder
- if ($this->debug_dcom >= 2) { echo 'imap: open: php
IMAP_OPEN would now select desired folder: "'. htmlspecialchars($folder)
.'"<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: open: php
IMAP_OPEN would now select desired folder: "'. htmlspecialchars($folder) .'"<br
/>'; }
// php's IMAP_OPEN also selects the desired folder
(mailbox) after the connection is established
if($folder != '')
{
$this->reopen('',$fq_folder);
}
- if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
open<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
open<br />'; }
return $this->socket;
}
@@ -527,18 +527,18 @@
*/
function close($flags="")
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
Close<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
Close<br />'; }
$cmd_tag = 'c001';
$full_command = $cmd_tag.' LOGOUT';
$expecting = $cmd_tag; // may be followed by OK, NO, or
BAD
- if ($this->debug_dcom >= 2) { echo 'imap: close:
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: close:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or
BAD<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: close:
write_port: "'. htmlspecialchars($full_command) .'"<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: close:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br
/>'; }
if(!$this->write_port($full_command))
{
- if ($this->debug_dcom >= 1) { echo 'imap:
close: LEAVING with error: could not write_port<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
close: LEAVING with error: could not write_port<br />'; }
$this->error();
}
@@ -551,17 +551,17 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: close: error in Close<br>';
- echo 'imap: close: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: close: error in Close<br
/>';
+ echo 'imap: close: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
Leaving Close with error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
Leaving Close with error<br />'; }
return False;
}
else
{
if ($this->debug_dcom >= 2) {
$this->report_svr_data($response_array, 'close', True); }
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING Close<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING Close<br />'; }
return True;
}
}
@@ -579,24 +579,24 @@
*/
function reopen($stream_notused, $fq_folder, $flags='')
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
reopen<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
reopen<br />'; }
// fq_folder is a "fully qualified folder", seperate
the parts:
$svr_data = array();
$svr_data = $this->distill_fq_folder($fq_folder);
$folder = $svr_data['folder'];
- if ($this->debug_dcom >= 1) { echo 'imap: reopen:
folder value is: ['.$folder.']<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: reopen:
folder value is: ['.$folder.']<br />'; }
$cmd_tag = 'r001';
$full_command = $cmd_tag.' SELECT "'.$folder.'"';
$expecting = $cmd_tag; // may be followed by OK, NO, or
BAD
- if ($this->debug_dcom >= 2) { echo 'imap: reopen:
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: reopen:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or
BAD<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: reopen:
write_port: "'. htmlspecialchars($full_command) .'"<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: reopen:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br
/>'; }
if(!$this->write_port($full_command))
{
- if ($this->debug_dcom >= 1) { echo 'imap:
reopen: could not write_port<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
reopen: could not write_port<br />'; }
$this->error();
}
@@ -608,17 +608,17 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: reopen: error in
reopen<br>';
- echo 'imap: reopen: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: reopen: error in reopen<br
/>';
+ echo 'imap: reopen: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING reopen with error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING reopen with error<br />'; }
return False;
}
else
{
if ($this->debug_dcom >= 2) {
$this->report_svr_data($response_array, 'reopen', True); }
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING reopen<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING reopen<br />'; }
return True;
}
}
@@ -655,7 +655,7 @@
*/
function listmailbox($stream_notused,$server_str,$pattern)
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
listmailbox<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
listmailbox<br />'; }
$mailboxes_array = Array();
// prepare params, seperate wildcards "*" or "%" from
param $pattern
@@ -694,12 +694,12 @@
$full_command = $cmd_tag.' LIST '.$list_params;
$expecting = $cmd_tag; // may be followed by OK, NO, or
BAD
- if ($this->debug_dcom >= 2) { echo 'imap: listmailbox:
write_port: ['. htmlspecialchars($full_command) .']<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: listmailbox:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or
BAD<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: listmailbox:
write_port: ['. htmlspecialchars($full_command) .']<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: listmailbox:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br
/>'; }
if(!$this->write_port($full_command))
{
- if ($this->debug_dcom >= 1) { echo 'imap:
listmailbox: could not write_port<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
listmailbox: could not write_port<br />'; }
$this->error();
}
@@ -711,11 +711,11 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: listmailbox: error in
listmailbox<br>';
- echo 'imap: listmailbox: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: listmailbox: error in
listmailbox<br />';
+ echo 'imap: listmailbox: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
Leaving listmailbox with error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
Leaving listmailbox with error<br />'; }
return False;
}
else
@@ -755,7 +755,7 @@
}
if ($this->debug_dcom >= 2) {
$this->report_svr_data($mailboxes_array, 'listmailbox
INTERNAL_mailboxes_array', False); }
- if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
listmailbox<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
listmailbox<br />'; }
//return '';
return $mailboxes_array;
}
@@ -771,7 +771,7 @@
*/
function mailboxmsginfo($stream_notused='')
{
- if ($this->debug_dcom >= 1) { echo 'imap:
mailboxmsginfo NOT YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
mailboxmsginfo NOT YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -841,7 +841,7 @@
*/
function status($stream_notused='',
$fq_folder='',$options=SA_ALL)
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
status<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
status<br />'; }
// fq_folder is a "fully qualified folder", seperate
the parts:
$svr_data = array();
@@ -871,12 +871,12 @@
$full_command = $cmd_tag.' STATUS
"'.$svr_data['folder'].'" ('.$query_str.')';
$expecting = $cmd_tag; // may be followed by OK, NO, or
BAD
- if ($this->debug_dcom >= 2) { echo 'imap: status:
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
- if ($this->debug_dcom >= 2) { echo 'imap: status:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or
BAD<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: status:
write_port: "'. htmlspecialchars($full_command) .'"<br />'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: status:
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br
/>'; }
if(!$this->write_port($full_command))
{
- if ($this->debug_dcom >= 1) { echo 'imap:
status: LEAVING with error: could not write_port<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
status: LEAVING with error: could not write_port<br />'; }
$this->error();
return False;
}
@@ -890,11 +890,11 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: status: error in
status<br>';
- echo 'imap: status: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: status: error in status<br
/>';
+ echo 'imap: status: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING status with error<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING status with error<br />'; }
return False;
}
@@ -905,11 +905,11 @@
//{
// if ($this->debug_dcom >= 2)
// {
- // echo 'imap: status: error in status,
more than (one) TWO lines (for buggy uwash servers) line server response, not
normal<br>';
- // echo 'imap: status: last recorded
error:<br>';
- // echo $this->server_last_error().'<br>';
+ // echo 'imap: status: error in status,
more than (one) TWO lines (for buggy uwash servers) line server response, not
normal<br />';
+ // echo 'imap: status: last recorded
error:<br />';
+ // echo $this->server_last_error().'<br
/>';
// }
- // if ($this->debug_dcom >= 1) { echo 'imap:
Leaving status with error<br>'; }
+ // if ($this->debug_dcom >= 1) { echo 'imap:
Leaving status with error<br />'; }
// return False;
//}
@@ -936,11 +936,11 @@
{
if ($this->debug_dcom >= 2)
{
- echo 'imap: status: error in status,
$response_line_of_data does not have "* STATUS" so it is not valid data<br>';
- echo 'imap: status: last recorded
error:<br>';
- echo $this->server_last_error().'<br>';
+ echo 'imap: status: error in status,
$response_line_of_data does not have "* STATUS" so it is not valid data<br />';
+ echo 'imap: status: last recorded
error:<br />';
+ echo $this->server_last_error().'<br
/>';
}
- if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING status with error at '.__LINE__.'<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
LEAVING status with error at '.__LINE__.'<br />'; }
return False;
}
@@ -1006,7 +1006,7 @@
// so L1 class var cache it so "sort" does not have to
call this function if it has ALREADY been run
$this->mailbox_status = $info;
if ($this->debug_dcom >= 2) { echo 'imap: status: L1
class var caching: $this->mailbox_status DUMP:<pre>';
print_r($this->mailbox_status); echo '</pre>'; }
- if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
status<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
status<br />'; }
return $info;
}
@@ -1057,7 +1057,7 @@
// snarf the data
$data_mini_str = trim(substr($data_mini_str, 0,
$data_end));
$return_data = (int)$data_mini_str;
- if ($this->debug_dcom >= 2) { echo 'imap:
snarf_status_data: '.$snarf_this.' = '.$return_data.'<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap:
snarf_status_data: '.$snarf_this.' = '.$return_data.'<br />'; }
}
return $return_data;
}
@@ -1104,33 +1104,33 @@
//SE_NOPREFETCH Don't prefetch searched messages.
function
sort($stream_notused='',$criteria=SORTARRIVAL,$reverse=False,$options='')
{
- //if ($this->debug_dcom >= 1) { echo 'imap: sort NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ //if ($this->debug_dcom >= 1) { echo 'imap: sort NOT
YET IMPLEMENTED imap sockets function<br />'; }
//return False;
//}
//function
sort($folder='',$criteria=SORTDATE,$reverse=False,$options='')
//{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
sort<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
sort<br />'; }
// we need total num message in this folder, is it
cached?
if ($this->mailbox_status != '')
{
$num_msgs = $this->mailbox_status->messages;
- if ($this->debug_dcom >= 2) { echo 'imap: sort:
using L1 class var cached $this->mailbox_status->messages
['.$this->mailbox_status->messages.']<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: sort:
using L1 class var cached $this->mailbox_status->messages
['.$this->mailbox_status->messages.']<br />'; }
}
else
{
// we need an "fq_folder" to call this function
$fq_folder =
$GLOBALS['phpgw']->msg->get_arg_value('mailsvr_callstr')
.$GLOBALS['phpgw']->msg->get_arg_value('folder');
- if ($this->debug_dcom >= 2) { echo 'imap: sort:
NO L1 class var cached num msgs data, calling this->status with $fq_folder
['.htmlspecialchars($fq_folder).']<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: sort:
NO L1 class var cached num msgs data, calling this->status with $fq_folder
['.htmlspecialchars($fq_folder).']<br />'; }
$status_data = $this->status($stream_notused,
$fq_folder,SA_ALL);
$num_msgs = $status_data->messages;
}
// DEBUG
- //if ($this->debug_dcom >= 1) { echo 'imap: debug QUICK
EXIT sort<br>'; }
+ //if ($this->debug_dcom >= 1) { echo 'imap: debug QUICK
EXIT sort<br />'; }
//return False;
@@ -1184,10 +1184,10 @@
while(list($key,$value) = each($field_list))
{
$return_array[] = $key;
- if ($this->debug_dcom >= 2) { echo 'imap: sort:
('.$i++.') Field: <b>'.$value."</b>\t\tMsg Num: <b>".$key."</b><br>\r\n"; }
+ if ($this->debug_dcom >= 2) { echo 'imap: sort:
('.$i++.') Field: <b>'.$value."</b>\t\tMsg Num: <b>".$key."</b><br />\r\n"; }
}
@reset($return_array);
- if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
sort<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
sort<br />'; }
return $return_array;
}
@@ -1198,7 +1198,7 @@
*/
function fetch_header($start,$stop,$element)
{
- if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
fetch_header<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: ENTERING
fetch_header<br />'; }
if(!$this->write_port('a001 FETCH '.$start.':'.$stop.'
RFC822.HEADER'))
{
@@ -1212,7 +1212,7 @@
//while(!ereg('FETCH completed',$response))
while(chop($response)!='')
{
- if ($this->debug_dcom >= 2) { echo
'imap: fetch_header: Response = '.$response."<br>\r\n"; }
+ if ($this->debug_dcom >= 2) { echo
'imap: fetch_header: Response = '.$response."<br />\r\n"; }
if(ereg('^\*',$response))
{
$field = explode(' ',$response);
@@ -1221,20 +1221,20 @@
if(ereg('^'.$element,$response))
{
$field_element[$msg_num] =
$this->phpGW_quoted_printable_decode2(substr($response,strlen($element)+1));
- if ($this->debug_dcom >= 2) {
echo 'imap: fetch_header: <b>Field:</b> '.$field_element[$msg_num]."\t = <b>Msg
Num</b> ".$msg_num."<br>\r\n"; }
+ if ($this->debug_dcom >= 2) {
echo 'imap: fetch_header: <b>Field:</b> '.$field_element[$msg_num]."\t = <b>Msg
Num</b> ".$msg_num."<br />\r\n"; }
}
elseif(ereg('^'.strtoupper($element),$response))
{
$field_element[$msg_num] =
$this->phpGW_quoted_printable_decode2(substr($response,strlen(strtoupper($element))+1));
- if ($this->debug_dcom >= 2) {
echo 'imap: fetch_header: <b>Field:</b> '.$field_element[$msg_num]."\t = <b>Msg
Num</b> ".$msg_num."<br>\r\n"; }
+ if ($this->debug_dcom >= 2) {
echo 'imap: fetch_header: <b>Field:</b> '.$field_element[$msg_num]."\t = <b>Msg
Num</b> ".$msg_num."<br />\r\n"; }
}
$response = $this->read_port();
}
$response = $this->read_port();
}
$response = $this->read_port();
- if ($this->debug_dcom >= 2) { echo 'imap: fetch_header:
returning $field_element ['.$field_element.'] <br>'; }
- if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
fetch_header<br>'; }
+ if ($this->debug_dcom >= 2) { echo 'imap: fetch_header:
returning $field_element ['.$field_element.'] <br />'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: LEAVING
fetch_header<br />'; }
return $field_element;
}
@@ -1252,11 +1252,11 @@
$response = $this->read_port();
while(!ereg('FETCH completed',$response))
{
- //echo 'Response = '.$response."<br>\n";
+ //echo 'Response = '.$response."<br />\n";
$field = explode(' ',$response);
$msg_num = intval($field[1]);
$field_element[$msg_num] =
substr($field[4],0,strpos($field[4],')'));
- //echo '<b>Field:</b>
'.substr($field[4],0,strpos($field[4],')'))."\t = <b>Msg Num</b>
".$field_element[substr($field[4],0,strpos($field[4],')'))]."<br>\n";
+ //echo '<b>Field:</b>
'.substr($field[4],0,strpos($field[4],')'))."\t = <b>Msg Num</b>
".$field_element[substr($field[4],0,strpos($field[4],')'))]."<br />\n";
$response = $this->read_port();
}
return $field_element;
@@ -1276,7 +1276,7 @@
function fetchstructure($stream_notused,$msg_num,$flags="")
{
// outer control structure for the multi-pass functions
- if ($this->debug_dcom >= 1) { echo 'imap:
fetchstructure NOT YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap:
fetchstructure NOT YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -1295,12 +1295,12 @@
{
if(!ereg('^\* '.$msgnum.' FETCH
\(BODY\[HEADER',$response) && chop($response) != '' && chop($response) != ')')
{
- echo 'Response = '.$response."<br>\n";
+ echo 'Response = '.$response."<br />\n";
$this->create_header($response,&$this->header,"True");
}
$response = $this->read_port();
}
- echo '<b>'.$msgnum.'</b> Completed!'."<br>\n";
+ echo '<b>'.$msgnum.'</b> Completed!'."<br />\n";
if(!$this->write_port('a001 FETCH '.$msgnum.'
BODY[TEXT]'))
{
$this->error();
@@ -1308,7 +1308,7 @@
$response = $this->read_port();
while(!ereg('^a001 OK FETCH completed',$response))
{
- echo 'Response = '.$response."<br>\n";
+ echo 'Response = '.$response."<br />\n";
$response = $this->read_port();
}
return $this->header;
@@ -1325,7 +1325,7 @@
*/
function
header($stream_notused,$msg_num,$fromlength="",$tolength="",$defaulthost="")
{
- if ($this->debug_dcom >= 1) { echo 'imap: header NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: header NOT
YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -1343,7 +1343,7 @@
*/
function delete($stream_notused,$msg_num,$flags="")
{
- if ($this->debug_dcom >= 1) { echo 'imap: delete NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: delete NOT
YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -1358,7 +1358,7 @@
function fetchheader($stream_notused,$msg_num,$flags='')
{
// NEEDED: code for flags: FT_UID; FT_INTERNAL;
FT_PREFETCHTEXT
- if ($this->debug_dcom >= 1) { echo 'imap: fetchheader
NOT YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: fetchheader
NOT YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -1372,7 +1372,7 @@
*/
function
fetchbody($stream_notused,$msg_num,$part_num="",$flags="")
{
- if ($this->debug_dcom >= 1) { echo 'imap: fetchbody
NOT YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: fetchbody
NOT YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
@@ -1383,7 +1383,7 @@
function
get_body($stream_notused,$msg_num,$flags='',$phpgw_include_header=True)
{
// NEEDED: code for flags: FT_UID; maybe FT_INTERNAL;
FT_NOT; flag FT_PEEK has no effect on POP3
- if ($this->debug_dcom >= 1) { echo 'imap: get_body NOT
YET IMPLEMENTED imap sockets function<br>'; }
+ if ($this->debug_dcom >= 1) { echo 'imap: get_body NOT
YET IMPLEMENTED imap sockets function<br />'; }
return False;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] email/inc/class.mail_dcom_imap_sock.inc.php, 1.15.2.3,
nomail <=