diff options
author | Dan Kalowsky <kalowsky@php.net> | 2001-02-25 04:41:18 +0000 |
---|---|---|
committer | Dan Kalowsky <kalowsky@php.net> | 2001-02-25 04:41:18 +0000 |
commit | 6b805544040861e45ca47523e9ad9d80c22af5b9 (patch) | |
tree | 0bcffa2e4daf3262f83180d2f937a9277737e3d1 /ext/imap/php_imap.h | |
parent | 9a1c4e532858d2031c9c45af0fe70ab9823da4d6 (diff) | |
download | php-git-6b805544040861e45ca47523e9ad9d80c22af5b9.tar.gz |
Updating the IMAP client to include quota support via the imap c-client2000 libraries.
# Y2K support is good...
Removes the SA_QUOTA and SA_QUOTA_ALL defines
# After speaking with Mark Crispin, it is believed these never existed.
Cleans up the imap_status() function to remove notion of quotas in a status message.
# There is no quota setting in a STATUS message from c-client.
Changes the config.m4 to support the client.h include
# This should include all the approriate headers for c-client (as defined by
# c-client maintainers) such as mail.h, and rfc822.h.
Changed the directory search order for the include files as well.
# Place the /usr/local/include last, and searched the
# /usr/local/include/{c-client|imap} directories first
(PHP imap_get_quota) Added
(PHP imap_set_quota) Added
@- IMAP quota support (imap_set_quota, imap_get_quota) enabled/added via
@ c-client2000
PR:
Submitted by:
Reviewed by:
Obtained from:
Diffstat (limited to 'ext/imap/php_imap.h')
-rw-r--r-- | ext/imap/php_imap.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ext/imap/php_imap.h b/ext/imap/php_imap.h index 1d1b9c8cfb..2d91299376 100644 --- a/ext/imap/php_imap.h +++ b/ext/imap/php_imap.h @@ -6,8 +6,12 @@ #include "build-defs.h" #endif -#include "mail.h" -#include "rfc822.h" +/* + #include "mail.h" + #include "rfc822.h" +*/ +#include "c-client.h" +#include "imap4r1.h" /* used for the imap_setquota function */ #include "modules.h" extern zend_module_entry imap_module_entry; @@ -100,6 +104,8 @@ PHP_FUNCTION(imap_renamemailbox); PHP_FUNCTION(imap_deletemailbox); PHP_FUNCTION(imap_listmailbox); PHP_FUNCTION(imap_scanmailbox); +PHP_FUNCTION(imap_get_quota); +PHP_FUNCTION(imap_set_quota); PHP_FUNCTION(imap_subscribe); PHP_FUNCTION(imap_unsubscribe); PHP_FUNCTION(imap_append); @@ -156,12 +162,8 @@ ZEND_BEGIN_MODULE_GLOBALS(imap) unsigned long status_unseen; unsigned long status_uidnext; unsigned long status_uidvalidity; -#ifdef SA_QUOTA - unsigned long status_quota; -#endif -#ifdef SA_QUOTA_ALL - unsigned long status_quota_all; -#endif + unsigned long quota_usage; + unsigned long quota_limit; ZEND_END_MODULE_GLOBALS(imap) |