[patch] new imap_status_current() function

php.internals

Thomas Jarosch

21 years ago
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