<HTML ><HEAD ><TITLE >imap_scanmailbox</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="PHP Manual" HREF="manual.html"><LINK REL="UP" TITLE="IMAP, POP3 and NNTP functions" HREF="ref.imap.html"><LINK REL="PREVIOUS" TITLE="imap_binary" HREF="function.imap-binary.html"><LINK REL="NEXT" TITLE="imap_mailboxmsginfo" HREF="function.imap-mailboxmsginfo.html"></HEAD ><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.imap-binary.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.imap-mailboxmsginfo.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.imap-scanmailbox" >imap_scanmailbox</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN13340" ></A >imap_scanmailbox -- Read the list of mailboxes, takes a string to search for in the text of the mailbox </DIV ><DIV CLASS="refsect1" ><A NAME="AEN13343" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >array imap_scanmailbox</CODE >(int imap_stream, string content);<P ></P ></DIV ><P > Returns an array containing the names of the mailboxes that have <TT CLASS="parameter" ><I >string</I ></TT > in the text of the mailbox. This function is simmilar to <A HREF="function.imap-listmailbox.html" ><B CLASS="function" >imap_listmailbox()</B ></A >, but it will additionally check for the presence of the string <TT CLASS="parameter" ><I >content</I ></TT > inside the mailbox data. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.imap-binary.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="manual.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.imap-mailboxmsginfo.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >imap_binary</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.imap.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >imap_mailboxmsginfo</TD ></TR ></TABLE ></DIV ></BODY ></HTML >