phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.msg_imap_sock.inc.php,1.1,1.2


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.msg_imap_sock.inc.php,1.1,1.2
Date: Sun, 26 May 2002 16:19:20 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv904

Modified Files:
        class.msg_imap_sock.inc.php 
Log Message:
formatting

Index: class.msg_imap_sock.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.msg_imap_sock.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** class.msg_imap_sock.inc.php 6 May 2002 09:05:44 -0000       1.1
--- class.msg_imap_sock.inc.php 26 May 2002 20:19:16 -0000      1.2
***************
*** 22,27 ****
    \**************************************************************************/
  
        class msg extends msg_base
!       {               
                
/**************************************************************************\
                *       data analysis specific to IMAP data communications
--- 22,29 ----
    \**************************************************************************/
  
+   /* $Id$ */
+ 
        class msg extends msg_base
!       {
                
/**************************************************************************\
                *       data analysis specific to IMAP data communications
***************
*** 91,95 ****
                        }
                }
!               
                /*!
                @function imap_read_port
--- 93,97 ----
                        }
                }
! 
                /*!
                @function imap_read_port
***************
*** 180,184 ****
                                        // what should we return here IF there 
was a NO or BAD error ?
                                        // how about an empty array, how about 
FALSE ??
!                                               
                                        // TEST THIS ERROR DETECTION - empty 
array = error (BAD or NO)
                                        // empty the array
--- 182,186 ----
                                        // what should we return here IF there 
was a NO or BAD error ?
                                        // how about an empty array, how about 
FALSE ??
! 
                                        // TEST THIS ERROR DETECTION - empty 
array = error (BAD or NO)
                                        // empty the array
***************
*** 198,202 ****
                                        // what should we return here IF there 
was a NO or BAD error ?
                                        // how about an empty array, how about 
FALSE ??
!                                               
                                        // TEST THIS ERROR DETECTION - empty 
array = error (BAD or NO)
                                        // empty the array
--- 200,204 ----
                                        // what should we return here IF there 
was a NO or BAD error ?
                                        // how about an empty array, how about 
FALSE ??
! 
                                        // TEST THIS ERROR DETECTION - empty 
array = error (BAD or NO)
                                        // empty the array
***************
*** 211,215 ****
                        return $return_me;
                }
!               
                /*!
                @function report_svr_data
--- 213,217 ----
                        return $return_me;
                }
! 
                /*!
                @function report_svr_data
***************
*** 232,236 ****
                        }
                }
!               
                /*!
                @function server_last_error
--- 234,238 ----
                        }
                }
! 
                /*!
                @function server_last_error
***************
*** 247,252 ****
                        return $this->server_last_error_str;
                }
!               
!               
                
/**************************************************************************\
                *       Functions NOT YET IMPLEMENTED
--- 249,253 ----
                        return $this->server_last_error_str;
                }
! 
                
/**************************************************************************\
                *       Functions NOT YET IMPLEMENTED
***************
*** 349,354 ****
                        return $empty_return;
                }
!       
!               
                
/**************************************************************************\
                *       OPEN and CLOSE Server Connection
--- 350,354 ----
                        return $empty_return;
                }
! 
                
/**************************************************************************\
                *       OPEN and CLOSE Server Connection
***************
*** 394,401 ****
                        $full_command = $cmd_tag.' LOGIN "'.quotemeta($user).'" 
"'.quotemeta($pass).'"';
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
!                       
                        if ($this->debug >= 2) { echo 'imap: open: write_port: 
'. htmlspecialchars($full_command) .'<br>'; }
                        if ($this->debug >= 2) { echo 'imap: open: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
!                       
                        if(!$this->write_port($full_command))
                        {
--- 394,401 ----
                        $full_command = $cmd_tag.' LOGIN "'.quotemeta($user).'" 
"'.quotemeta($pass).'"';
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
! 
                        if ($this->debug >= 2) { echo 'imap: open: write_port: 
'. htmlspecialchars($full_command) .'<br>'; }
                        if ($this->debug >= 2) { echo 'imap: open: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
! 
                        if(!$this->write_port($full_command))
                        {
***************
*** 408,412 ****
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
!                       
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
--- 408,412 ----
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
! 
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
***************
*** 426,430 ****
                                if ($this->debug >= 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 >= 2) { echo 'imap: open: php 
IMAP_OPEN would now select desired folder: "'. htmlspecialchars($folder) 
.'"<br>'; }
--- 426,430 ----
                                if ($this->debug >= 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 >= 2) { echo 'imap: open: php 
IMAP_OPEN would now select desired folder: "'. htmlspecialchars($folder) 
.'"<br>'; }
***************
*** 441,452 ****
                {
                        if ($this->debug >= 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 >= 2) { echo 'imap: close: write_port: 
"'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: close: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
!                       
                        if(!$this->write_port($full_command))
                        {
--- 441,452 ----
                {
                        if ($this->debug >= 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 >= 2) { echo 'imap: close: write_port: 
"'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: close: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
! 
                        if(!$this->write_port($full_command))
                        {
***************
*** 454,462 ****
                                $this->error();
                        }
!                       
                        // server can spew some b.s. goodbye message before the 
official response
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
!                       
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
--- 454,462 ----
                                $this->error();
                        }
! 
                        // server can spew some b.s. goodbye message before the 
official response
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
! 
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
***************
*** 469,473 ****
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
Close with error<br>'; }
!                               return False;                           
                        }
                        else
--- 469,473 ----
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
Close with error<br>'; }
!                               return False;
                        }
                        else
***************
*** 493,497 ****
                {
                        if ($this->debug >= 1) { echo 'imap: Entering 
reopen<br>'; }
!                       
                        // fq_folder is a "fully qualified folder", seperate 
the parts:
                        $svr_data = array();
--- 493,497 ----
                {
                        if ($this->debug >= 1) { echo 'imap: Entering 
reopen<br>'; }
! 
                        // fq_folder is a "fully qualified folder", seperate 
the parts:
                        $svr_data = array();
***************
*** 499,510 ****
                        $folder = $svr_data['folder'];
                        if ($this->debug >= 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 >= 2) { echo 'imap: reopen: 
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: reopen: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
!                       
                        if(!$this->write_port($full_command))
                        {
--- 499,510 ----
                        $folder = $svr_data['folder'];
                        if ($this->debug >= 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 >= 2) { echo 'imap: reopen: 
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: reopen: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
! 
                        if(!$this->write_port($full_command))
                        {
***************
*** 512,519 ****
                                $this->error();
                        }
!                       
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
!                       
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
--- 512,519 ----
                                $this->error();
                        }
! 
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
! 
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
***************
*** 526,530 ****
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
reopen with error<br>'; }
!                               return False;                           
                        }
                        else
--- 526,530 ----
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
reopen with error<br>'; }
!                               return False;
                        }
                        else
***************
*** 569,573 ****
                        if ($this->debug >= 1) { echo 'imap: Entering 
listmailbox<br>'; }
                        $mailboxes_array = Array();
!                       
                        // prepare params, seperate wildcards "*" or "%" from 
param $pattern
                        // LIST param 1 is empty or is a mailbox reference 
string withOUT any wildcard
--- 569,573 ----
                        if ($this->debug >= 1) { echo 'imap: Entering 
listmailbox<br>'; }
                        $mailboxes_array = Array();
! 
                        // prepare params, seperate wildcards "*" or "%" from 
param $pattern
                        // LIST param 1 is empty or is a mailbox reference 
string withOUT any wildcard
***************
*** 605,609 ****
                        $full_command = $cmd_tag.' LIST '.$list_params;
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
!                       
                        if ($this->debug >= 2) { echo 'imap: listmailbox: 
write_port: ['. htmlspecialchars($full_command) .']<br>'; }
                        if ($this->debug >= 2) { echo 'imap: listmailbox: 
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or 
BAD<br>'; }
--- 605,609 ----
                        $full_command = $cmd_tag.' LIST '.$list_params;
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
! 
                        if ($this->debug >= 2) { echo 'imap: listmailbox: 
write_port: ['. htmlspecialchars($full_command) .']<br>'; }
                        if ($this->debug >= 2) { echo 'imap: listmailbox: 
expecting: "'. htmlspecialchars($expecting) .'" followed by OK, NO, or 
BAD<br>'; }
***************
*** 614,621 ****
                                $this->error();
                        }
!                       
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
!                       
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
--- 614,621 ----
                                $this->error();
                        }
! 
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
! 
                        // TEST THIS ERROR DETECTION - empty array = error (BAD 
or NO)
                        if (count($response_array) == 0)
***************
*** 628,632 ****
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
listmailbox with error<br>'; }
!                               return False;                           
                        }
                        else
--- 628,632 ----
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
listmailbox with error<br>'; }
!                               return False;
                        }
                        else
***************
*** 634,638 ****
                                if ($this->debug >= 2) { 
$this->report_svr_data($response_array, 'reopen', True); }
                        }
!                       
                        // delete all text except the folder name
                        for ($i=0; $i<count($response_array); $i++)
--- 634,638 ----
                                if ($this->debug >= 2) { 
$this->report_svr_data($response_array, 'reopen', True); }
                        }
! 
                        // delete all text except the folder name
                        for ($i=0; $i<count($response_array); $i++)
***************
*** 665,669 ****
                                }
                        }
!                       
                        if ($this->debug >= 2) { 
$this->report_svr_data($mailboxes_array, 'listmailbox 
INTERNAL_mailboxes_array', False); }
                        if ($this->debug >= 1) { echo 'imap: Leaving 
listmailbox<br>'; }
--- 665,669 ----
                                }
                        }
! 
                        if ($this->debug >= 2) { 
$this->report_svr_data($mailboxes_array, 'listmailbox 
INTERNAL_mailboxes_array', False); }
                        if ($this->debug >= 1) { echo 'imap: Leaving 
listmailbox<br>'; }
***************
*** 671,675 ****
                        return $mailboxes_array;
                }
!               
                // OBSOLETED
                function fix_folder($folder)
--- 671,675 ----
                        return $mailboxes_array;
                }
! 
                // OBSOLETED
                function fix_folder($folder)
***************
*** 699,707 ****
                        return $folder;
                }
!               
                
/**************************************************************************\
                *       Mailbox Status and Information
                
\**************************************************************************/
!               
                function mailboxmsginfo($stream_notused='')
                {
--- 699,707 ----
                        return $folder;
                }
! 
                
/**************************************************************************\
                *       Mailbox Status and Information
                
\**************************************************************************/
! 
                function mailboxmsginfo($stream_notused='')
                {
***************
*** 709,713 ****
                        return False;
                }
!               
                /*
                function mailboxmsginfo($folder='')
--- 709,713 ----
                        return False;
                }
! 
                /*
                function mailboxmsginfo($folder='')
***************
*** 731,738 ****
                                $mailbox = $folder;
                        }
!                       
                        $info->messages = $this->num_msgs($mailbox);
                        $info->size  = 
$this->total($this->fetch_field(1,$info->messages,'RFC822.SIZE'));
!                       
                        if ($info->messages)
                        {
--- 731,738 ----
                                $mailbox = $folder;
                        }
! 
                        $info->messages = $this->num_msgs($mailbox);
                        $info->size  = 
$this->total($this->fetch_field(1,$info->messages,'RFC822.SIZE'));
! 
                        if ($info->messages)
                        {
***************
*** 745,749 ****
                }
                */
!               
                /*!
                @function status
--- 745,749 ----
                }
                */
! 
                /*!
                @function status
***************
*** 774,782 ****
                        $query_str = '';
                        $available_options = Array(
!                               SA_MESSAGES     => 'MESSAGES',
!                               SA_RECENT       => 'RECENT',
!                               SA_UNSEEN       => 'UNSEEN',
!                               SA_UIDNEXT      => 'UIDNEXT',
!                               SA_UIDVALIDITY  => 'UIDVALIDITY'
                        );
                        @reset($available_options);
--- 774,782 ----
                        $query_str = '';
                        $available_options = Array(
!                               SA_MESSAGES => 'MESSAGES',
!                               SA_RECENT   => 'RECENT',
!                               SA_UNSEEN   => 'UNSEEN',
!                               SA_UIDNEXT  => 'UIDNEXT',
!                               SA_UIDVALIDITY => 'UIDVALIDITY'
                        );
                        @reset($available_options);
***************
*** 789,808 ****
                        }
                        $query_str = trim($query_str);
!                       
                        $cmd_tag = 's001';
                        //$full_command = $cmd_tag.' STATUS 
'.$svr_data['folder'].' (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)';
                        $full_command = $cmd_tag.' STATUS 
"'.$svr_data['folder'].'" ('.$query_str.')';
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
!                       
                        if ($this->debug >= 2) { echo 'imap: status: 
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: status: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
!                       
                        if(!$this->write_port($full_command))
                        {
                                if ($this->debug >= 1) { echo 'imap: status: 
could not write_port<br>'; }
                                $this->error();
!                               return False;                           
                        }
!                       
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
--- 789,808 ----
                        }
                        $query_str = trim($query_str);
! 
                        $cmd_tag = 's001';
                        //$full_command = $cmd_tag.' STATUS 
'.$svr_data['folder'].' (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)';
                        $full_command = $cmd_tag.' STATUS 
"'.$svr_data['folder'].'" ('.$query_str.')';
                        $expecting = $cmd_tag; // may be followed by OK, NO, or 
BAD
! 
                        if ($this->debug >= 2) { echo 'imap: status: 
write_port: "'. htmlspecialchars($full_command) .'"<br>'; }
                        if ($this->debug >= 2) { echo 'imap: status: expecting: 
"'. htmlspecialchars($expecting) .'" followed by OK, NO, or BAD<br>'; }
! 
                        if(!$this->write_port($full_command))
                        {
                                if ($this->debug >= 1) { echo 'imap: status: 
could not write_port<br>'; }
                                $this->error();
!                               return False;
                        }
! 
                        // read the server data
                        $response_array = $this->imap_read_port($expecting);
***************
*** 818,822 ****
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
status with error<br>'; }
!                               return False;                           
                        }
                        // STATUS should only return 1 line of data
--- 818,822 ----
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
status with error<br>'; }
!                               return False;
                        }
                        // STATUS should only return 1 line of data
***************
*** 830,839 ****
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
status with error<br>'; }
!                               return False;                           
                        }
!                       
                        // if we get here we have valid server data
                        if ($this->debug >= 2) { 
$this->report_svr_data($response_array, 'status', True); }
!                       
                        // initialize structure
                        $info = new mailbox_status;
--- 830,839 ----
                                }
                                if ($this->debug >= 1) { echo 'imap: Leaving 
status with error<br>'; }
!                               return False;
                        }
! 
                        // if we get here we have valid server data
                        if ($this->debug >= 2) { 
$this->report_svr_data($response_array, 'status', True); }
! 
                        // initialize structure
                        $info = new mailbox_status;
***************
*** 843,847 ****
                        $info->uidnext = '';
                        $info->uidvalidity = '';
!                       
                        //typical server data:
                        // * STATUS INBOX (MESSAGES 15 RECENT 1 UNSEEN 2 
UIDNEXT 17 UIDVALIDITY 1005967489)
--- 843,847 ----
                        $info->uidnext = '';
                        $info->uidvalidity = '';
! 
                        //typical server data:
                        // * STATUS INBOX (MESSAGES 15 RECENT 1 UNSEEN 2 
UIDNEXT 17 UIDVALIDITY 1005967489)
***************
*** 849,853 ****
                        // get data the includes and follows the opening paren
                        $status_data_raw = strstr($response_array[0], '(');
!                       
                        // snarf any of the 5 possible pieces of data if they 
are present
                        $status_data['messages'] = 
$this->snarf_status_data($status_data_raw, 'MESSAGES');
--- 849,853 ----
                        // get data the includes and follows the opening paren
                        $status_data_raw = strstr($response_array[0], '(');
! 
                        // snarf any of the 5 possible pieces of data if they 
are present
                        $status_data['messages'] = 
$this->snarf_status_data($status_data_raw, 'MESSAGES');
***************
*** 856,860 ****
                        $status_data['uidnext'] = 
$this->snarf_status_data($status_data_raw, 'UIDNEXT');
                        $status_data['uidvalidity'] = 
$this->snarf_status_data($status_data_raw, 'UIDVALIDITY');
!                       
                        // fill structure and unset any unfilled data elements
                        if ($status_data['messages'] != '')
--- 856,860 ----
                        $status_data['uidnext'] = 
$this->snarf_status_data($status_data_raw, 'UIDNEXT');
                        $status_data['uidvalidity'] = 
$this->snarf_status_data($status_data_raw, 'UIDVALIDITY');
! 
                        // fill structure and unset any unfilled data elements
                        if ($status_data['messages'] != '')
***************
*** 902,906 ****
                        return $info;
                }
!               
                function snarf_status_data($status_raw_str='',$snarf_this='')
                {
--- 902,906 ----
                        return $info;
                }
! 
                function snarf_status_data($status_raw_str='',$snarf_this='')
                {
***************
*** 913,920 ****
                        // fallback value
                        $return_data = '';
!                       
                        //typical server data:
                        // * STATUS INBOX (MESSAGES 15 RECENT 1 UNSEEN 2 
UIDNEXT 17 UIDVALIDITY 1005967489)
!                       
                        // see if $snarf_this is in the raw data
                        $data_mini_str = stristr($status_raw_str, $snarf_this);
--- 913,920 ----
                        // fallback value
                        $return_data = '';
! 
                        //typical server data:
                        // * STATUS INBOX (MESSAGES 15 RECENT 1 UNSEEN 2 
UIDNEXT 17 UIDVALIDITY 1005967489)
! 
                        // see if $snarf_this is in the raw data
                        $data_mini_str = stristr($status_raw_str, $snarf_this);
***************
*** 948,952 ****
                        return $return_data;
                }
!               
                // OBSOLETED
                function num_msg($folder='')
--- 948,952 ----
                        return $return_data;
                }
! 
                // OBSOLETED
                function num_msg($folder='')
***************
*** 958,962 ****
                        return $this->status_query($folder,'MESSAGES');
                }
!               
                // OBSOLETED
                function total($field)
--- 958,962 ----
                        return $this->status_query($folder,'MESSAGES');
                }
! 
                // OBSOLETED
                function total($field)
***************
*** 970,980 ****
                        return $total;
                }
!                                       
                
/**************************************************************************\
                *       Message Sorting
                
\**************************************************************************/
                // options/flags are:
!                       //SE_UID        Return UIDs instead of sequence numbers
!                       //SE_NOPREFETCH Don't prefetch searched messages.
                function 
sort($stream_notused='',$criteria=SORTARRIVAL,$reverse=False,$options='')
                {
--- 970,980 ----
                        return $total;
                }
! 
                
/**************************************************************************\
                *       Message Sorting
                
\**************************************************************************/
                // options/flags are:
!               //SE_UID        Return UIDs instead of sequence numbers
!               //SE_NOPREFETCH Don't prefetch searched messages.
                function 
sort($stream_notused='',$criteria=SORTARRIVAL,$reverse=False,$options='')
                {
***************
*** 982,986 ****
                        return False;
                }
!               
                /*
                function 
sort($folder='',$criteria=SORTDATE,$reverse=False,$options='')
--- 982,986 ----
                        return False;
                }
! 
                /*
                function 
sort($folder='',$criteria=SORTDATE,$reverse=False,$options='')
***************
*** 1030,1034 ****
                                {
                                        
uasort($field_list,array($this,"ssort_decending"));
!                               }                       
                        }
                        elseif(!$reverse)
--- 1030,1034 ----
                                {
                                        
uasort($field_list,array($this,"ssort_decending"));
!                               }
                        }
                        elseif(!$reverse)
***************
*** 1052,1056 ****
                }
                */
!               
                
/**************************************************************************\
                *
--- 1052,1056 ----
                }
                */
! 
                
/**************************************************************************\
                *
***************
*** 1064,1068 ****
                        return False;
                }
!               
                /*
                function fetchstructure($msgnum)
--- 1064,1068 ----
                        return False;
                }
! 
                /*
                function fetchstructure($msgnum)
***************
*** 1099,1104 ****
                }
                */
!               
!               
                
/**************************************************************************\
                *       Message Envelope (Header Info) Data
--- 1099,1103 ----
                }
                */
! 
                
/**************************************************************************\
                *       Message Envelope (Header Info) Data
***************
*** 1109,1118 ****
                        return False;
                }
!               
!               
                
/**************************************************************************\
                *       More Data Communications (dcom) With IMAP Server
                
\**************************************************************************/
!       
                
/**************************************************************************\
                *       DELETE a Message From the Server
--- 1108,1116 ----
                        return False;
                }
! 
                
/**************************************************************************\
                *       More Data Communications (dcom) With IMAP Server
                
\**************************************************************************/
! 
                
/**************************************************************************\
                *       DELETE a Message From the Server
***************
*** 1123,1128 ****
                        return False;
                }
!               
!               
                
/**************************************************************************\
                *       Get Message Headers From Server
--- 1121,1125 ----
                        return False;
                }
! 
                
/**************************************************************************\
                *       Get Message Headers From Server
***************
*** 1134,1138 ****
                        return False;
                }
!               
                function fetch_header($start,$stop,$element)
                {
--- 1131,1135 ----
                        return False;
                }
! 
                function fetch_header($start,$stop,$element)
                {
***************
*** 1170,1175 ****
                        return $field_element;
                }
!               
!               
                function fetch_field($start,$stop,$element)
                {
--- 1167,1171 ----
                        return $field_element;
                }
! 
                function fetch_field($start,$stop,$element)
                {
***************
*** 1189,1195 ****
                        }
                        return $field_element;
!               }               
!               
!               
                
/**************************************************************************\
                *       Get Message Body (Parts) From Server
--- 1185,1190 ----
                        }
                        return $field_element;
!               }
! 
                
/**************************************************************************\
                *       Get Message Body (Parts) From Server
***************
*** 1200,1204 ****
                        return False;
                }
!               
                /*!
                @function get_body
--- 1195,1199 ----
                        return False;
                }
! 
                /*!
                @function get_body
***************
*** 1211,1216 ****
                        return False;
                }
-               
        }
- 
  ?>
--- 1206,1209 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]