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()); }
/** * */ 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'; }