mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Prioritize LIST-EXTENDED over LSUB (LSUB deprecated in IMAP4rev2)
This commit is contained in:
parent
5cdbba8da0
commit
4c0b0b102a
1 changed files with 4 additions and 4 deletions
|
|
@ -454,10 +454,7 @@ trait Folders
|
||||||
$aParameters = array();
|
$aParameters = array();
|
||||||
$aReturnParams = array();
|
$aReturnParams = array();
|
||||||
|
|
||||||
if ($bIsSubscribeList) {
|
if ($this->hasCapability('LIST-EXTENDED')) {
|
||||||
// IMAP4rev2 deprecated
|
|
||||||
$sCmd = 'LSUB';
|
|
||||||
} else if ($this->hasCapability('LIST-EXTENDED')) {
|
|
||||||
// RFC 5258
|
// RFC 5258
|
||||||
$aReturnParams[] = 'SUBSCRIBED';
|
$aReturnParams[] = 'SUBSCRIBED';
|
||||||
// $aReturnParams[] = 'CHILDREN';
|
// $aReturnParams[] = 'CHILDREN';
|
||||||
|
|
@ -470,6 +467,9 @@ trait Folders
|
||||||
if ($this->hasCapability('SPECIAL-USE')) {
|
if ($this->hasCapability('SPECIAL-USE')) {
|
||||||
$aReturnParams[] = 'SPECIAL-USE';
|
$aReturnParams[] = 'SPECIAL-USE';
|
||||||
}
|
}
|
||||||
|
} else if ($bIsSubscribeList) {
|
||||||
|
// IMAP4rev2 deprecated
|
||||||
|
$sCmd = 'LSUB';
|
||||||
}
|
}
|
||||||
|
|
||||||
$aParameters[] = $this->EscapeFolderName($sParentFolderName);
|
$aParameters[] = $this->EscapeFolderName($sParentFolderName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue