Ejemplo n.º 1
0
 /**
  * Set root dir and last stored mailbox
  * This must be done AFTER connecting to the server!
  */
 public function set_imap_prop()
 {
     $this->imap->set_charset($this->config->get('default_charset', RCMAIL_CHARSET));
     if ($default_folders = $this->config->get('default_imap_folders')) {
         $this->imap->set_default_mailboxes($default_folders);
     }
     if (isset($_SESSION['mbox'])) {
         $this->imap->set_mailbox($_SESSION['mbox']);
     }
     if (isset($_SESSION['page'])) {
         $this->imap->set_page($_SESSION['page']);
     }
 }