示例#1
0
 public function open_stream()
 {
     if (!isset($this->session->all_client)) {
         $this->session->all_client = open_all();
     }
     if (!isset($this->session->inbox_client)) {
         $this->session->inbox_client = open_inbox();
     }
 }
示例#2
0
 function delete_messages($checked_messages = '')
 {
     $client = open_all();
     //NOTE:Client must ALWAYS be the client used to store UID's on the database, otherwise
     //this function may delete the wrong messages
     if (!empty($checked_messages)) {
         mark_for_deletion($client, $checked_messages);
     }
     return imap_expunge($client);
 }