scan subdirectory of mailbox with PHP
Andrew Morgan
morgan at orst.edu
Mon Mar 19 18:38:39 EST 2007
On Mon, 19 Mar 2007, brian wrote:
> I'm fiddling with the woefully under-documented PHP IMAP functions and cannot
> figure out how to do this. I can connect just fine to INBOX, list the
> headers, etc. but my target mails are a couple of directories further down.
> I'd like to somehow do the equivalent of chdir once i've made a connection.
>
> Does anyone know how i can achieve this?
PHP hides the IMAP Select command well, but I'm pretty sure you want to
use imap_reopen(). See the docs at:
http://www.php.net/manual/en/function.imap-reopen.php
Andy
More information about the Info-cyrus
mailing list