IMAP patches
| From: | Chuck Hagenbuch | Date: | Mon, 21 Jun 1999 03:39:56 +0000 |
| Subject: | IMAP patches | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7305@lists.php.net to get a copy of this message | ||
Hi.
I've got an updated version of my imap patch. It is attached to this
message, gzipped for minimum size. (It's small, but I'm paranoid after the
little fiasco on the main list).
This patch adds several things. I've tried to follow the coding standards in
all of this.
1. What the patch in the bug database does: allow the DRAFT flag to be
checked for wherever other flags are available (imap_header(), etc).
2. imap_getmailboxes(). This function returns the mailbox list as a list of
objects. Each object has a name property, an attributes property, and a
delimiter property. This allows discovery of different levels of folder
hierarchy, determination of whether or not a folder can have folders inside
it, and handling of servers that use different hierarchy delimiters for
different namespaces.
3. An SA_ALL constant that can be passed to imap_status to get an object
with all of the various status members defined, without having to do a
5-member | in the php script.
The only bug that I'm aware of is in imap_getmailboxes(). I get the
following message in my apache error log whenever it is called:
[Sun Jun 20 17:26:35 1999] [error] Possible PHP3 memory leak detected
(harmless): 20 bytes from php3_hash.c:111
[Sun Jun 20 17:26:35 1999] [error] Possible PHP3 memory leak detected
(harmless): 44 bytes from internal_functions.c:269
I know it says harmless, but I'd like to track it down nonetheless. If
someone could tell me where this is happening, or suggest a way to find out
what part of my code it's in, I'd be grateful.
I can seperate these into individual patches if that would let 1 and 3 go
into 3.0.10, if 2 isn't ready.
Also, who is currently maintaining the IMAP code? I'm probably going to need
to add some more functions in the future - imap_search(), etc.
Thanks,
-chuck
--
Charles Hagenbuch, <chagenbu@wso.williams.edu>