Ejemplo n.º 1
0
 public function init()
 {
     \QDOrm::addConnection('extmailbox', new \QDPDO($GLOBALS['conf']['qddb']['connection'], $GLOBALS['conf']['qddb']['username'], $GLOBALS['conf']['qddb']['password']));
     $this->imapProxy = new Interceptor(QDImap::getInstance($GLOBALS['conf']['imapMailBox']['accounts'], $this->proxyClass), isset($GLOBALS['conf']['app']['plugins']) ? $GLOBALS['conf']['app']['plugins'] : null);
     $this->imapProxy->setCache($GLOBALS['conf']['imapMailBox']['tmp']);
     $this->imapProxy->setDBCacheObject(new \MMG_MAIL_MESSAGE());
 }
Ejemplo n.º 2
0
 /**
  *
  */
 public function init()
 {
     \QDOrm::addConnection('extmailbox', new \QDPDO($GLOBALS['conf']['qddb']['connection'], $GLOBALS['conf']['qddb']['username'], $GLOBALS['conf']['qddb']['password']));
     $this->imapProxy = QDImap::getInstance($GLOBALS['conf']['imapMailBox']['accounts'], 'ZIMBRA');
     $this->imapProxy->setCache($GLOBALS['conf']['imapMailBox']['tmp']);
     $this->imapProxy->setDBCacheObject(new MMG_MAIL_MESSAGE());
     $this->tmpAttachmentsPath = $GLOBALS['conf']['imapMailBox']['tmp'] . '/attachments';
 }