/**
  * @constructor
  */
 function __construct()
 {
     $this->imap_host = $GLOBALS['phpgw']->config->config_data['imap_message_host'];
     $this->imap = @imap_open("\\{{$this->imap_host}:143/imap/notls}INBOX", $GLOBALS['phpgw_info']['user']['account_lid'], $GLOBALS['phpgw_info']['user']['passwd']);
     if (is_resource($this->imap)) {
         $this->stat = imap_status($this->imap, "\\{{$this->imap_host}}INBOX", SA_MESSAGES);
         $this->connected = true;
     }
     parent::__construct();
 }
 function __construct()
 {
     $this->db =& $GLOBALS['phpgw']->db;
     $this->connected = true;
     parent::__construct();
 }