mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Prioritize LIST-EXTENDED over LSUB (LSUB deprecated in IMAP4rev2)
This commit is contained in:
parent
5cdbba8da0
commit
4c0b0b102a
|
@ -454,10 +454,7 @@ trait Folders
|
|||
$aParameters = array();
|
||||
$aReturnParams = array();
|
||||
|
||||
if ($bIsSubscribeList) {
|
||||
// IMAP4rev2 deprecated
|
||||
$sCmd = 'LSUB';
|
||||
} else if ($this->hasCapability('LIST-EXTENDED')) {
|
||||
if ($this->hasCapability('LIST-EXTENDED')) {
|
||||
// RFC 5258
|
||||
$aReturnParams[] = 'SUBSCRIBED';
|
||||
// $aReturnParams[] = 'CHILDREN';
|
||||
|
@ -470,6 +467,9 @@ trait Folders
|
|||
if ($this->hasCapability('SPECIAL-USE')) {
|
||||
$aReturnParams[] = 'SPECIAL-USE';
|
||||
}
|
||||
} else if ($bIsSubscribeList) {
|
||||
// IMAP4rev2 deprecated
|
||||
$sCmd = 'LSUB';
|
||||
}
|
||||
|
||||
$aParameters[] = $this->EscapeFolderName($sParentFolderName);
|
||||
|
|
Loading…
Reference in a new issue