[patch] new imap_status_current() function

From: Date: Wed, 01 Jun 2005 16:28:04 +0000
Subject: [patch] new imap_status_current() function
Groups: php.internals 
Request: Send a blank email to internals+get-16351@lists.php.net to get a copy of this message
Hi, attached patch adds a new imap_status_current() function. This function exposes several status variables about the current selected folder. The patch was developed for PHP 4.3.11, but also applies to PHP 5.0.4 with fuzz. A little sidenote on the normal imap_status() function: It's undefined to call it for the current folder. Quoting RFC 3501, section 6.3.10: The STATUS command is intended to access the status of mailboxes other than the currently selected mailbox. Because the STATUS command can cause the mailbox to be opened internally, and because this information is available by other means on the selected mailbox, the STATUS command SHOULD NOT be used on the currently selected mailbox. Maybe it should be added to the documentation to use only the new imap_status_current() function for the current folder. Please CC: comments, I'm not on the list. Best regards, Thomas Jarosch

Attachment: [text/x-diff] php-imap-status-current.patch
« previous php.internals (#16351) next »