forked from extern/egroupware
take the extra time on failure on folderExists, when the folder seems to be not to be there
This commit is contained in:
parent
6c2990b515
commit
4339243655
@ -1463,10 +1463,14 @@ class mail_ui
|
||||
$toSchema = $mail_ui->mail_bo->isDraftFolder($_folderName,false)||$mail_ui->mail_bo->isSentFolder($_folderName,false)||$mail_ui->mail_bo->isTemplateFolder($_folderName,false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// take the extra time on failure
|
||||
if (!$mail_ui->mail_bo->folderExists($_folderName,true))
|
||||
{
|
||||
//error_log(__METHOD__.__LINE__.' Test on Folder:'.$_folderName.' failed; Using INBOX instead');
|
||||
$query['selectedFolder']=$mail_ui->mail_bo->sessionData['mailbox']=$_folderName='INBOX';
|
||||
}
|
||||
}
|
||||
$mail_ui->mail_bo->saveSessionData();
|
||||
$rowsFetched['messages'] = null;
|
||||
$offset = $query['start']+1; // we always start with 1
|
||||
|
Loading…
Reference in New Issue
Block a user