summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.h
diff options
context:
space:
mode:
authorDan Kalowsky <kalowsky@php.net>2001-02-26 15:17:12 +0000
committerDan Kalowsky <kalowsky@php.net>2001-02-26 15:17:12 +0000
commitd883ff47ed8563107e686cb5ec18a99a1c81d5ff (patch)
treee0d556002abf5a0e5fc183218a15b3593b84d29b /ext/imap/php_imap.h
parent08d3e700fa0f8debcf8364ee4cca6c31771619c5 (diff)
downloadphp-git-d883ff47ed8563107e686cb5ec18a99a1c81d5ff.tar.gz
Correctly checks for the proper header files, and excludes the QUOTA functions
from non-imap2000 systems (unavailable for testing at this time). # anyone willing to test this out on non-imap2000? PR: Submitted by: Reviewed by: Sascha Schumann Obtained from:
Diffstat (limited to 'ext/imap/php_imap.h')
-rw-r--r--ext/imap/php_imap.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/ext/imap/php_imap.h b/ext/imap/php_imap.h
index 2d91299376..cbdd491a9f 100644
--- a/ext/imap/php_imap.h
+++ b/ext/imap/php_imap.h
@@ -6,12 +6,15 @@
#include "build-defs.h"
#endif
-/*
+#ifdef HAVE_IMAP2000
+ /* these are used for quota support */
+ #include "c-client.h" /* includes mail.h and rfc822.h */
+ #include "imap4r1.h" /* location of c-client quota functions */
+#else
#include "mail.h"
#include "rfc822.h"
-*/
-#include "c-client.h"
-#include "imap4r1.h" /* used for the imap_setquota function */
+#endif
+
#include "modules.h"
extern zend_module_entry imap_module_entry;
@@ -104,8 +107,10 @@ PHP_FUNCTION(imap_renamemailbox);
PHP_FUNCTION(imap_deletemailbox);
PHP_FUNCTION(imap_listmailbox);
PHP_FUNCTION(imap_scanmailbox);
+#ifdef HAVE_IMAP2000
PHP_FUNCTION(imap_get_quota);
PHP_FUNCTION(imap_set_quota);
+#endif
PHP_FUNCTION(imap_subscribe);
PHP_FUNCTION(imap_unsubscribe);
PHP_FUNCTION(imap_append);
@@ -162,8 +167,10 @@ ZEND_BEGIN_MODULE_GLOBALS(imap)
unsigned long status_unseen;
unsigned long status_uidnext;
unsigned long status_uidvalidity;
+#ifdef HAVE_IMAP2000
unsigned long quota_usage;
unsigned long quota_limit;
+#endif
ZEND_END_MODULE_GLOBALS(imap)