/**
  * @return FolderCollection
  */
 function GetFolders(&$accountDelimiter)
 {
     $folderCollection = new FolderCollection();
     $folders =& $this->_imapMail->list_mailbox($accountDelimiter);
     $subsScrFolders = $this->_imapMail->list_subscribed_mailbox($accountDelimiter);
     $existsIndex = array('VirusAdd' => true);
     $folderCollection = $this->GetFolderCollectionFromArrays($folders, $subsScrFolders, $accountDelimiter, $existsIndex);
     /* custom class */
     ap_Custom::StaticUseMethod('wm_ChangeServerImapFoldersAfterGet', array(&$folderCollection));
     return $folderCollection;
 }
 /**
  * @return FolderCollection
  */
 function GetFolders()
 {
     $folderCollection =& new FolderCollection();
     $folders =& $this->_imapMail->list_mailbox($this->Account->Delimiter);
     $subs_folders = $this->_imapMail->list_subscribed_mailbox($this->Account->Delimiter);
     $this->_addLevelToFolderTree($folderCollection, $folders, $subs_folders);
     return $folderCollection;
 }
 /**
  * @return FolderCollection
  */
 function GetFolders()
 {
     ConvertUtils::SetLimits();
     $lastD = $this->Account->Delimiter;
     $folderCollection = new FolderCollection();
     $folders =& $this->_imapMail->list_mailbox($this->Account->Delimiter);
     $subsScrFolders = $this->_imapMail->list_subscribed_mailbox($this->Account->Delimiter);
     $existsIndex = array('VirusAdd' => true);
     $folderCollection = $this->GetFolderCollectionFromArrays($folders, $subsScrFolders, $this->Account->Delimiter, $existsIndex);
     if ($lastD != $this->Account->Delimiter) {
         $this->Account->UpdateDelimiter();
     }
     /* custom class */
     wm_Custom::StaticUseMethod('ChangeServerImapFoldersAfterGet', array(&$folderCollection));
     return $folderCollection;
 }