FPublisher
Web-����������: ���� ������
������������ PHP
imap_set_quota
(PHP 4 >= 4.0.5, PHP 5)
imap_set_quota � Sets a quota for a given mailbox
��������
bool imap_set_quota ( resource $imap_stream , string $quota_root , int $quota_limit )
Sets an upper limit quota on a per mailbox basis.
������ ����������
An IMAP stream returned by imap_open().
The mailbox to have a quota set. This should follow the IMAP standard format for a mailbox: user.name.
The maximum size (in KB) for the quota_root
������������ ��������
���������� TRUE � ������ ��������� ���������� ��� FALSE � ������ ������������� ������.
�������
������ #1 imap_set_quota() example
if (! imap_set_quota ( $mbox , «user.kalowsky» , 3000 )) <
echo «Error in setting quota\n» ;
return;
>
����������
This function is currently only available to users of the c-client2000 or greater library.
The given imap_stream must be opened as the mail administrator, other wise this function will fail.
�������� �����
��������� �����������:
���������� �� �����
��������� 14 ����� 2020 ����
�p���� Genesis (�� ��p��p������� ��p������)
��������� �� ������ � Vim
��������� 05 ������� 2020 ����
Vim �������� ������ ��������, �� ������ � ��� �� ������ ��������.
�������� ���� ����� ��������������� �����-�� ���� �������� ��� ������ crontab, ��� ������ ��������� ������ � viv �����.
������: Error: Cannot find a val >��������� 13 �������� 2020 ����
���� ��������� ������ �� centos 5 ����
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
Linux Optimization
��������� 30 ���� 2012 ����
imap_get_quota
(PHP 4 >= 4.0.5, PHP 5, PHP 7)
imap_get_quota � �������� ��������� ������ ����� � ���������� ������������� �������� ������
��������
���������� ��������� ������ ����� � ���������� ������������� �������� ������.
������ ������ ������� ��� ������������� �������� ��������������, �� ���������������� — imap_get_quotaroot() .
������ ����������
����� IMAP, ���������� �� imap_open() .
quota_root ������ ��������������� ������� user.name, ��� name — ��� �����, ���������� �� �������� �����.
������������ ��������
����������� ����������� ������ ����� ����� � ������� «limit» � «usage». ����� � ������ «limit» ���������� ������������ ���������� ������ �����. ����� � ������ «usage» ���������� ������� ������� �������������. � ������ ������ ������ FALSE .
������� � PHP 4.3 � ����, ������� ����� ����� ������������� ���������, ���������� � � RFC2087. ������ ������������ �������� ������� ��� ��������� ��������������� ���������� ������������ �������� (�.�. ��������� ��� ��������), ��� ������ ����������� ������ ����� ����������� �������������� ��������. ������ ������� ������� ����� ��������� ������ ������ � ������� «limit» � «usage».
��� ����������� �������� �������������, ������������ ����� ������� ��� ��� ��������, ���� �������������� ��� ���������.
�������
������ #1 ������ ������������� imap_get_quota()
= imap_open ( «
or die( «can’t connect: » . imap_last_error ());
$quota_value = imap_get_quota ( $mbox , «user.kalowsky» );
if ( is_array ( $quota_value )) <
echo «Usage level is: » . $quota_value [ ‘usage’ ];
echo «Limit level is: » . $quota_value [ ‘limit’ ];
>
������ #2 ������ ������������� imap_get_quota() � PHP 4.3 � ����
= imap_open ( «
or die( «can’t connect: » . imap_last_error ());
$quota_values = imap_get_quota ( $mbox , «user.kalowsky» );
if ( is_array ( $quota_values )) <
$storage = $quota_values [ ‘STORAGE’ ];
echo «STORAGE usage level is: » . $storage [ ‘usage’ ];
echo «STORAGE limit level is: » . $storage [ ‘limit’ ];
$message = $quota_values [ ‘MESSAGE’ ];
echo «MESSAGE usage level is: » . $message [ ‘usage’ ];
echo «MESSAGE limit is: » . $message [ ‘limit’ ];
����������
��� ������� �������� ������ ��� ������������� ���������� c-client2000 ��� �����.
�������� ����� imap_stream ������ ���� ������ ��� ���������������� �������������.
�������� �����
- imap_open() — ��������� ����� IMAP � ��������� �����
- imap_set_quota() — ���������� ����� ��� ��������� ��������� �����
- imap_get_quotaroot() — �������� ��������� ����� ��� ������� ������������
imap_set_quota
(PHP 4 >= 4.0.5, PHP 5)
imap_set_quota � Sets a quota for a given mailbox
��������
Sets an upper limit quota on a per mailbox basis.
������ ����������
����� IMAP, ���������� �� imap_open() .
The mailbox to have a quota set. This should follow the IMAP standard format for a mailbox: user.name.
The maximum size (in KB) for the quota_root
������������ ��������
���������� TRUE � ������ ��������� ���������� ��� FALSE � ������ ������������� ������.
�������
������ #1 imap_set_quota() example
if (! imap_set_quota ( $mbox , «user.kalowsky» , 3000 )) <
echo «Error in setting quota\n» ;
return;
>
����������
This function is currently only available to users of the c-client2000 or greater library.
The given imap_stream must be opened as the mail administrator, other wise this function will fail.
�������� �����
- imap_open() — Open an IMAP stream to a mailbox
- imap_get_quota() — Retrieve the quota level settings, and usage statics per mailbox
IMAP ������
� IMAP ������ CommuniGate Pro ���������� IMAP ������. IMAP ������� ��������� ���������� ����������� (�������� ����������) �������� ��������� �� ����� ������������, ��������� �������� �������� IMAP4rev1 (RFC2060) ����� TCP/IP ����.
IMAP �������� ��������� ���������� ����������� ��������� �������������� ����� ������������, ����������� ��������� ����� �������, ������������ � ������ �����, �������� ��������� � ������, ��������� MIME-��������� �������� ��������� � ��������� ��������� MIME-����� ���������, �������� � ������ ������������.
IMAP ������ CommuniGate Pro ������������ ��� ���������������, ��� � ���������� (SSL/TLS) ����������.
�������� �������� ������� � ���������� (IMAP)
�������� �������� ������� � ���������� ��������� �������� � �����������, ����������� � ������ �� �������� �������� ��������, ��������������� � ����������� ��������. ���������, �� ������� �������� ���������� — �������� ��������� (�������� ������), ������������� ���������� � ����������� ��������� ������� � �������� ��� ��� ������������ � ������. ���� ���������� ������������ ��������������� ������, �� �������� ���������� ������ ���������� �� �������� ������ �������. ������� ��������� ��������� ������� ������ ������ ���� ��������� � �����, ��������� ����������� ��������� ��� ������� ��, ����� ��������� � ������������ ����������, ����������� ��������� ����� ������� � �.�.
���������������� IMAP ������
��� ����, ��� �� ��������� ��������� IMAP ������, ����������� ��� ��������� ��������������. �������� �������� ������ � ������� ���������:
����������� ��� ��������� ��� ����, ��� �� �������, ����� ���������� IMAP ������ ������ ��������� � ������� ������ �������. ������ ������������ ������� �������� (������ � �������� ���������) ��� ������� �������� (�������� ��������� � �� ��������� ������). � ������, ���� � ������ IMAP ������ ��������� ��������, ��������, �������������� ����� ��������� ����������� �� ������ ����������� ��� ��: � ���� ������ � ������ ������ ������� ����� ����� ������������ ����� ��������� ���������� � ������ ������ �� ������ ��������� ��� �� ������ ������. ����� �������� ������, ������� ��������� ������� ������� � � ������� ��������, ����� ��������� ������ ����� ����� ������ ����������� ���� ������.
������, ���������� IMAP ������� � ������ ������ �������, ����� ������� IMAP.
����� �� ���������� ��������� �������� � ��������� ������������ ����� �������, IMAP ������ ������ ��� ���������� «�������». ������ �������� ��������� ��� IMAP ����������, ������� ������������� ������� ��� ����, ��� �� �������� ����� � ������ �������. ��� ��������� ������������ ��� ����, ��� �� ���������� ����� ������������� ����������, ������� ����� ��������� IMAP ������. ���� ������� ���������� ����� ����������, �� ������ ����� ���������� � ����� ����� ����������. � ���� ������ �������� ������� ������ ���������� ����������� �������.
�� ���������, ������� IMAP ������ ��������� ��������������� ���������� �� TCP ���� 143 � ���������� ���������� �� TCP ���� 993. ������� �� ������ ������� ��� ����, ��� �� ��������� ���� �������� IMAP.
IMAP ������ ������������ ������� STARTTLS, ������� ��������� ��������� ������� ������������� ���������� � ������������ ������ � ����� ���������� ��� � ����� ����������� ����������.
Send 'Running' every ���� ��� ����� �� ����������� � �������� �������, �� IMAP ������ ����� ������� �� ������������� ���������� �������� APPEND, COPY � SEARCH. ���� ���������� ����� �� ���� �������� ��������� ��������� ����� ������ �������, �� ������ ���������� ����������� ���������� «������������» �����. ��� ����������� ����� �������������� ��� ����, ��� �� ������������� ������������� �������� �����-���� � ����������� ����������; ����� ��� �������� ��� ������ � ������������� � ���������� NAT-������������, ������� ������� ��������� ����������, ���� ��� ��������� ����� ���������.
������������� ������
� ������� �� ��������� ������ IMAP ��������, «�����������» �������� �����, IMAP ������ ������� CommuniGate Pro ������������� ����� �������, ��� �� ������������ ������������� ������ � ����� ��������������� ����� ��������.
IMAP ������ ���������� �������� ����� CommuniGate Pro, ��� ��������� ���������� ������������� ������ � ������ ��� ���� ����� �������������� ���������� � ��������. �������������� ���������� �������� � ������� �����.
������ ���� �������
IMAP ������ ������������ RFC2086 (ACL ���������� IMAP4). ��� ���������� ��������� ��������� IMAP ������������� ������������� ������ � ����� ������ ������ �������������.
�������������� ���������� � ������� ���� ������� ����� (ACL) �������� � ������� �����.
��� ����, ��� �� ����� ����������� ������������� ����� �������, ������ ������ ������������ ������������ IMAP �������, ��������������� ��� ���������� ���������. ���� ����� ������ �����������, �� ����� ������� � ����� ����� ������ ����� ��� ��������� ������������.
����� (�����) � ��������� �����
CommuniGate Pro ��������� ������������� �������� ������ � ������ ������ �������������. �������������� ���������� �������� � ������� �����.
��������� ���������� IMAP �������� �� ������������ ��� �����������. ������, ��� �������� �������� IMAP, ������������ «��������» �� �����, ���������� �������, ����������� ������ ��� �����������. �������� — ��� ������ ��� �����, ������� �������� ��������� ������ �� �������. ������, �������� ��������� ������� ������ �������� �� ����� �������������� ���������. ������������ ������������ ������ �� �����, ������� �������� � ������ ��������.
��������� ��������� IMAP �������� ��� ��� ��������� ������������, ������������ ����� �������� ��� ����� ����� (���, ��������
public/news/company) � ���� ������ ��������. ��� ������� � ����, ��� IMAP ������� ����� ���������� ����� ����� ������ � �������� ������� ������������ � ������������ ������ �������� � ���� ����� ������.
��������� IMAP ������� (����� ��� Microsoft Outlook � Outlook Express) ������ �� ������������ ������ � ������ �������. ��� ����, ��� �� ��� ������� �������� ������ � ��������� ������������ ������� ������ �������������, ����� �������������� �������� ���������� �����.
�������������� ������������
IMAP ������ ��������� ������������� ������������ ��� ������ ��������������, �������������� �������� CommuniGate Pro.
���� ����� ��������� �� ������������ ������� ���������, � ���������� �� ����������� � ������� SSL/TLS, �� ������ ��������� �������� ����� LOGINDISABLED � ������ �������������� ������������ ��������������.
���������� �����
IMAP ������ CommuniGate Pro ������������ ������ � ������ ���� ������� (���������, �������� � �.�.). ��������� ������� �/��� ������������ ����� ���� ���������� � ��������������� ���������, ���� ��� ������������ � ����������� �������.
��� ������ �������� ���������� ����� � ����� IMAP ������� LIST, ����:
- ������������ ������� ��������� ��-�������� ����� ����� � IMAP, ���
- ������� IMAP LIST ����� ���������� CLASS , ���
- ���� ��������� ������� IMAP ENABLE EXTENSIONS
��������������
IMAP ������ CommuniGate Pro ��������� ������� ��������� � ����������������, ������������ �������������������� ������������. ��������������� ��������� ���������� ���������� �������� ��������� ����� ����������� ��� ������ IMAP [ALERT].
IMAP ������ CommuniGate Pro ��������� ������� �������������� ����� ����� �������������� ������������ � ����� ������������ ����� �������������� � �������� �� ������������ � ����� ����� � ������� IMAP ������.
����������� �� ��������������
IMAP ������ ������������ RFC2221 (����������� �� ��������������).
��� ���� ��������� � ������� ������, ��� ������ �������������, �������� � ���������� �������� ����������, �������������� ����� �������������.
���� ��� ������������ ���������������� �� ������� �������� ����� (������������� SMTP �������), �� IMAP ������ ���������� ������������� ����� � ������� ����������� �� ��������������. ���� IMAP ������ ������������ ����������� �� ��������������, �� �� ������������� ������������ �� ����� �����.
������: ������������ j.smith ������� � ������ ������� �� ������ othercompany.com ��� ������������ John. ��� ����, ��� �� �������������� ��� ����� ������������, �� ������� ������ ���������� � ������� ��������������:
= John@othercompany.com
������, ���� ������������ ���������� ����� �� ��� ������ ��� j.smith, �� ������ ����� ��������� ��� ��� ������������, �� ��� ����� ����� �������� ����������� �� ��������������:
1234 NO [REFERRAL IMAP://John;AUTH=*@othercompany.com/] account has been moved to a remote system
���� ���������� �������� ��������� ������������ ����������� �� ��������������, �� ��� ������������� ���������� ���������� � �������� othercompany.com ��� ������������ John.
���������� ���������� IMAP
�� ������ ��������� �� ����������� IMAP ������ ����� ��� ��������� ��������������. ��� ����, ��� �� ������� �������� ���������� �� IMAP, ������� �� ������ ������ � ������� ����������:
ID ��� ���� �������� �������� ����������������� ����� IMAP ������. � ������� CommuniGate Pro ��� ������ ���������� ��� IMAP-nnnnn, ��� nnnnn — ��� ����������������� ����� ������. ����� ��� ���� �������� IP ����� ����������������� �������. ������������ ��� ���� �������� ��� ������������ (����� �������� ��������������). ���������� ��� ���� �������� ����� ���������� (�����, � ������� �������� ������� ��� TCP/IP ������. ��������� ��� ���� �������� ��� ��� ������� ��������, ���, ���� ������� �������� �� ������������, ������� ��������� ������ (Authenticating, Selected � �.�.). ������������ ���� ���� �����-������ �������� IMAP ��������, �� ��� ���� �������� �����, ��������� � ������� ������ ��������.
���� IMAP ���������� ������������ ��� MAPI ������, �� ��� ������ ������������ �� ������� ����.
���������� ���������� IMAP �������� ����� SNMP ����� CommuniGate Pro.
����������� ���������� IMAP
� IMAP ������ CommuniGate Pro ����������� ��������� ���������� ��������� IMAP. ���������� ��������� �� ���� ���������� � CommuniGate Pro ����� ���� �����������.
QUOTA ������ ������������ ����� ���� �������� ����� ����� �������. NAMESPACE ����������� ������� «����� ������������» � CommuniGate Pro ��������������� �����. UNSELECT ��� ������� IMAP ������������ ������� CLOSE, �� ��� �� ������� ������� ���������, ���������� ��� \Deleted
�������������� ���������� IMAP
� IMAP ������ CommuniGate Pro ����������� ����� ��������� ����������, �� ���������� ������ IMAP ��������� � �� ���������� � ������������ ��������� ���������� IMAP.
UNSELECT ��� ������� IMAP ������������ ������� CLOSE, �� ��� �� ������� ������� ���������, ���������� ��� \Deleted COPY ����� ����� ��������� ����� ����� ����� ���� ������ �������� ENCRYPTED certificateData, ��� certificateData ���� PKI ���������� � ��������� base64, ���� ������ �������� (*), ����������� �� ������ S/MIME ���������� �������������������� ������������.
���������� ��������� �������� S/MIME-�������������� ��� ������ ���������� �����������. MOVE, UID MOVE ��� ������� IMAP ������������ �������� COPY, �� ���� ��������� ���� ����������� �������, �� ��� ����� �������. ���� ��������� ������������� ����� ������� ������ � ���� �� ������������, �� ����� �������� �� �����������. STATUS ������� STATUS ����� ������������ ��������� �������������� ����� ��������� ������: INTERNALSIZE ������� ������, ���������� � ����� — �����. ��� ����� ��������� ������ ����� (� ��� ����, ��� ��� �������� �� �������). ���� ������ ������, �� �� ����������� ��������� � ������ �������� �������� RFC822.SIZE ��� ���� ���������, ���������� � �����. OLDEST ������� ������, ���������� � ����� — ������ ���� date_time. ��� ��������� INTERNALDATE ������ ������� ��������� � �����. ���� � ����� ��� ���������, ���� ������� ������ � ����� �� ����������. UNSEENMEDIA ������� ������, ���������� � ����� — ����� ���������, ������� ����� ������������� ���� Media, �� �� ����� ����� Seen.
������: A001 STATUS mailbox (UNSEEN OLDEST INTERNALSIZE UNSEENMEDIA)
* STATUS mailbox (UNSEEN 14 OLDEST "23-Feb-2002 07:59:42 +0000" INTERNALSIZE 2345678 UNSEENMEDIA 1)
A001 OK completed LIST ������ � �������, ���������� � ���������� LISTEXT, ������� LIST ����� ������������ ��������� �������������� �����: UIDVALIDITY, CLASS, MESSAGES, UIDNEXT, UNSEEN, INTERNALSIZE, OLDEST, UNSEENMEDIA
��� ����� ��� imap_set_quota
(PHP 4 >= 4.0.5, PHP 5)
imap_set_quota — Sets a quota for a given mailbox
Description bool imap_set_quota ( resource imap_stream, string quota_root, int quota_limit )
Sets an upper limit quota on a per mailbox basis. This function requires the imap_stream to have been opened as the mail administrator account. It will not work if opened as any other user.
This function is currently only available to users of the c-client2000 or greater library.
Returns TRUE on success and FALSE on error.
Пример 1. imap_set_quota() example
if (! imap_set_quota ( $mbox , «user.kalowsky» , 3000 )) <
echo «Error in setting quota\n» ;
return;
>
If you want to disable the quotas again, set them to -1.
��� ����� IMAP � POP?
����������: �� ��������� ��� ����� ����������� ������������ ��� ����������� ����������� ����������� �� ����� �����. ��� �������� ���������� �������������, ������� �� ����� ����� ��������� ���������� � �������������� ������. ��� ��� �����, ����� ��� ������ ���� ��� �������. ������ ��� ������� ���� ������ � ��������, ������� �� ��� ���, � ������� ������ ����� ��������. ��� �������� ����� �������� ������ �� �������� (�� ���������� �����).
IMAP � POP � ��� ��� ������ ������� � ����������� �����. ������������� ������������ IMAP, ���� ��� ��������� ��������� ����� � ���������� ������ ��������� (��������, ��������, �������� � ��������).
IMAP ��������� �������� ������ � ����������� ����� �����, ��� �� ����������, � ������ ����������. ��� ������ ��������� ����������� ����� � ������� IMAP �� �� ���������� ��� � �� ���������� �� ����������; ������ ����� �� ������� ��� �� ������ ����������� �����. � ���������� �� ������ ��������� ����������� ����� � ��������� ��������� � ����� ����� ����: �� ��������, ����������, ���������� �����.
IMAP ��������� ���������, ������ ����� �� ��� ��������, � �������� �� ����������� �������������. ��� �� ������� ��������� ��������� ������� �������, ��� � ������� POP.
POP ����������� � ����� ������� ����������� ����� � ��������� �� ��� ��� ����� ���������. ����� ���������� �� ��������� � Windows ��� Mac OS ��������� ��������� �� �������� ������. ��� ������, ��� ����� ���������� ��������� ��������� � ���� ����� ���������� ������ � ���� �� ����������. ���� �� ����������� ���������� � ��������� � ������� ����������, ����� ��������� ��������� ����� ����������.
������������ ����� �������� �������� �� ���������� � Windows ��� Mac OS, � �� �� �������� �������.
������ ���������� ����� ��������� ������������� ������� ������ ����������� �����, ������� ���������� POP.
������� ������ ���-����� ��� �������� ����������
Gmail, Outlook.com, Hotmail.com � iCloud � ��� ���-�����. ���� � ������� ������ ���-����� ����������� � ���������.
���� � ��� ���� ��������� � Windows ��� Mac OS, ��, ��������, ������������ ���������, �������� Outlook, Apple Mail ��� Thunderbird, ��� ���������� ����������� ������. Outlook, Apple Mail � Thunderbird � ��� ������������� ������ � ����������� ������: ���������, ��������������� �� ���������� ��� ���������� ����������� ������. ��� ��������������� � ������� ������ ����������� �����, �������� Gmail ��� Outlook.com, ��� ��������� � �������� ����������� �����.
� �������� ���������� �� ������ �������� ����� ������� ������ ����������� �����, ����� ��������� �� ������. ��������, �� ������ �������� � ���������� Outlook ��� Apple Mail ������� ������ ���-����� (Gmail, Outlook.com, Hotmail.com, AOL � Yahoo) � �������� ������� ������, ��������������� ����� ������������.
���������� ������� ������� ���-����� � �������� ����������, ����� ��� Outlook, Apple Mail, Thunderbird
����� �� ���������� ������� ������ ����������� ����� � �������� ����������, ��� �������� ��������� ������ ������� IMAP ��� ������ �������.
���� ���������� ����������� ����� �� ������� �������� ���� ������� ������ ����������� �����, ������ ��� ������� � ���, ��� ������� ������ ����������� ����� ��������� ��� ������� �� ��������� POP. � ���� ������ ���������� ���������� � ���������� ����� ����������� ����� � ������ ��� ������� POP � SMTP, ����� ����� ���� ������ ���������� � �������� ����������. ��� �������, ��� �������� �������� �������� ���:
������ �������� ����� (IMAP): IMAP. _��_ ��� ������>. com
������ �������� ����� (POP): pop. ��� ������>.com
������ ��������� ����� (SMTP): smtp. ��� ������>.com
��� ��������� ���������� ������������� imap ����������� Postfix
����� �������� ������� ������������� 30-40 ��., � ��������� ���� ���� �� 10���.
��� �������� � ������������ ����.
�������� ������ Thunderbird. � ��� ���� ������ ����� �������� ����� ��������� ��� ������� ������������ � IMAP �������. �������� �� ��������� ����������� �� ������������ ����� ����������.
���������� ������ �����. ����� ���, ����������� ����� ����� Dovecon +SSL.
���������� ��� ��������� ���������� ������?
Postfix �� ������. �� �� ���������� ������������� POP3/IMAP4. ����������� �������� � dovecot
/etc/dovecot.conf ��� /etc/dovecot/conf.d/20-imap.conf
������ ����� Postfix?
� ������� �����? Dovecot ����� ��� ����� iptables.
Quotas�
Cyrus IMAP features a flexible Quota scheme with support for limiting various resources, such as storage or number of folders or messages.
Monitor and Repair�
Quotas may be monitored and repaired via the quota(8) command:
Controlling Quota Behavior�
How restrictive quotas will be may be tailored to the needs of different sites, via the use of several settings in imapd.conf(5):
If set to a value of zero or higher, users have their INBOX folders created upon a successful login event or upon lmtpd(8) message delivery if autocreate_post is enabled, provided their INBOX did not yet already exist.
The user�s quota is set to the value if it is greater than zero, otherwise the user has unlimited quota.
Note that quota is specified in kilobytes.
If set to a value of zero or higher, users who have their INBOX folders created upon a successful login event (see autocreate_quota), or upon lmtpd(8) message delivery if autocreate_post is enabled, receive the message quota configured in this option.
The default of -1 disables assigning message quota.
For consistency with autocreate_quota, a value of zero is treated as unlimited message quota, rather than a message quota of zero.
��� ����� ��� imap_set_quota
(PHP 4 >= 4.0.5, PHP 5)
imap_set_quota — Sets a quota for a given mailbox
Description bool imap_set_quota ( resource imap_stream, string quota_root, int quota_limit )
Sets an upper limit quota on a per mailbox basis. This function requires the imap_stream to have been opened as the mail administrator account. It will not work if opened as any other user.
This function is currently only available to users of the c-client2000 or greater library.
Returns TRUE on success and FALSE on error.
Пример 1. imap_set_quota() example
if (! imap_set_quota ( $mbox , «user.kalowsky» , 3000 )) <
echo «Error in setting quota\n» ;
return;
>
If you want to disable the quotas again, set them to -1.
��� ����� ��� imap_set_quota
imap_set_quota — ������������� ����� ��� ������� mailbox’�.
��������
int imap_set_quota (int imap_stream, string quota_root, int quota_limit)
������������� ������� ������ ����� �� mailbox��� ������� �������, ����� imap_stream ��� ������ ��� ������ �������������� �����. ��� �� ����� ��������, ���� �� ������ ��� ����� ������ ������������.
��� ������� � ��������� ����� �������� ������ ��� ������������� ���������� c-client2000.
imap_stream ��� ��������� ������, ������������ �� imap_open() . ���� ����� ������ ���� ������ ��� mail administrator, ����� ������� �������� �������.
quota_root ��� mailbox ��� ��������� �����. ���� �������� ������ ��������� ��������� IMAP ��� mailbox’�, ‘user.name’.
quota_limit ��� ������������ ������ (� KB) ��� quota_root .
���������� TRUE ��� ������, FALSE ��� ������.