retrieve Capabilities after Login, as this is required to get the real capabilities of the server where your mails reside on

This commit is contained in:
Klaus Leithoff 2012-04-18 14:34:27 +00:00
parent 344a618ac1
commit 6f48101d15

View File

@ -154,7 +154,7 @@ class Net_IMAP extends Net_IMAPProtocol {
return new PEAR_Error($ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]);
}
}
$this->cmdCapability();
if($selectMailbox){
//Select INBOX
if ( PEAR::isError( $ret=$this->cmdSelect( $this->getCurrentMailbox() ) ) ) {
@ -233,7 +233,7 @@ class Net_IMAP extends Net_IMAPProtocol {
}
if (!empty($flagsString))
{
foreach (array('$label1','$label2','$label3','$label4','$label5','\*') as $i =>$kw)
foreach (array('$label1','$label2','$label3','$label4','$label5','\*') as $i =>$kw)
{
if (stripos($flagsString,$kw) !== false)
{