about imp_show_quota etc...
Kris von Mach
dev@swishmail.com
Mon, 25 Feb 2002 22:14:45 -0500
I have noticed that some flolks have been having problems with
imp_show_quota in imp. I too had this problem, now that I wanted to enable
quota usage. The problem is that imap_get_quota function is not available
in php by default...
You need to add this line to php-4.1.1/main/php_config.h
#define HAVE_IMAP2001 1
Around the lines:
/* */
/* #undef HAVE_IMAP2001 */
Now of course you need to have IMAP2001 or IMAP2002 compiled on your system.
You might also need to edit php-4.1.1/ext/imap/php_imap.h
to specify where the header files are:
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
/* these are used for quota support */
#include
"/usr/local/src/imap-2002.DEV.SNAP-0202100942/c-client/c-client.h" /*
includes mail.h and rfc822.h */
#include
"/usr/local/src/imap-2002.DEV.SNAP-0202100942/c-client/imap4r1.h" /*
location of c-client quota functions */
#else
And once that is done it works great...
I don't know why you need to go through all of this, maybe there is an
easier way. One that is obvious and I have just missed it.
Makes me wonder how did others get it running and not bother answering the
people who had this problem.
Anyway, I hope this helps someone out.
__
Kris.