Новые книги

The VI3 product suite includes several products that make up the full feature set of enterprise virtualization. The products in the VI3 suite include:* VMware ESX Server* VMware Virtual SMP* VMware VirtualCenter* Virtual Infrastructure Client* VMware VMotion* VMware Distributed Resource Scheduler (DRS)* VMware High Availability (HA)* VMware Consolidated Backup (VCB)

Rather than wait to introduce the individual products in their own chapters, I'll introduce each product so I can refer to the products and explain how they affect each piece of the design, installation, and configuration of your virtual infrastructure. Once you understand the basic functions and features of each product in the suite, you'll have a better grasp of how that product fits into the big picture of virtualization, and you'll more clearly understand how each of the products fits into the design.
Расширьте мощность и гибкость Блендера с помощью Питона: высокоуровневого, легкого для изучения скриптового языка

imap_get_quota

Учебник РНР
Назад Вперёд

imap_get_quota

(PHP 4 >= 4.0.5)

imap_get_quota - запрашивает установки уровня квоты и статистику использования mailbox'а.

Описание

array imap_get_quota (int imap_stream, string quota_root)

Возвращает массив с ограничителем целочисленных значений и использование данного mailbox'а. Значение ограничителя представляет общее количество пространства, отводимое для данного mailbox'а. Значение использования/usage представляет текущий уровень ёмкости mailbox'ов. Возвращает FALSE при неудаче.

Эта функция в настоящее время доступна только пользователям клиентской библиотеки c-client2000.

imap_stream должен быть значением, возвращённым из вызова imap_status(). Этот поток должен быть открыт для работы как пользователь mail admin.
quota_root нормально должен иметь форму user.name, где name это mailbox, о котором вы хотите запросить информацию.

Пример 1. imap_get_quota()
$mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
      or die("can't connect: ".imap_last_error());
 
$quota_value = imap_get_quota($mbox, "user.kalowsky");
if(is_array($quota_value)) {
    print "Usage level is: " . $quota_value['usage'];
    print "Limit level is: " . $quota_value['limit'];
} 
 
imap_close($mbox);

См. также imap_open(), imap_set_quota().


Назад Оглавление Вперёд
imap_fetchstructure Вверхimap_getmailboxes