/** * @param FolderCollection $folders * @return bool */ function Synchronize(&$folders) { $GLOBALS[MailDefaultCharset] = $this->_account->GetDefaultIncCharset(); $GLOBALS[MailOutputCharset] = $this->_account->DbCharset; return $this->MailStorage->Connect() && $this->MailStorage->Synchronize($folders); }