Exemple #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());
 }
Exemple #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';
 }