Ejemplo n.º 1
0
    #var_dump($nameSpace);
} else {
    print "<span style='color:red;'>not supported</span></h1>";
}
$elapsedTime = microtime(true) - $startTime;
print "<h1> {$elapsedTime} :: Checking for QUOTA support: ";
if ($imapClient->hasCapability('QUOTA')) {
    print "<span style='color:green;'>supported</span></h1>";
    $quota = $imapClient->getStorageQuotaRoot();
    print "parsed QUOTA info:<br>";
    var_dump($quota);
} else {
    print "<span style='color:red;'>not supported</span></h1>";
}
$elapsedTime = microtime(true) - $startTime;
print "<h1> {$elapsedTime} :: Checking for SORT support: ";
if ($imapClient->hasCapability('SORT')) {
    print "<span style='color:green;'>supported</span></h1>";
    $elapsedTime = microtime(true) - $startTime;
    print "<h2> {$elapsedTime} :: Sorting {$testFolder} by DATE:</h2>";
    $sortResult = $imapClient->sort('DATE');
    $elapsedTime = microtime(true) - $startTime;
    print "<h2> {$elapsedTime} :: Sorting {$testFolder} by SUBJECT:</h2>";
    $sortResult = $imapClient->sort('SUBJECT');
} else {
    print "<span style='color:red;'>not supported</span></h1>";
}
$elapsedTime = microtime(true) - $startTime;
print "<h1> {$elapsedTime} :: Logout</h1>";
$imapClient->disconnect();
print "</pre>";