<HTML ><HEAD ><TITLE >imap_check</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="IMAP, POP3 and NNTP functions" HREF="ref.imap.html"><LINK REL="PREVIOUS" TITLE="imap_bodystruct" HREF="function.imap-bodystruct.html"><LINK REL="NEXT" TITLE="imap_clearflag_full" HREF="function.imap-clearflag-full.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation 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-bodystruct.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.imap-clearflag-full.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.imap-check" ></A >imap_check</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN37644" ></A ><P > (PHP 3, PHP 4 )</P >imap_check -- Check current mailbox</DIV ><DIV CLASS="refsect1" ><A NAME="AEN37647" ></A ><H2 >Description</H2 >object <B CLASS="methodname" >imap_check</B > ( resource imap_stream)<BR ></BR ><P > Returns information about the current mailbox. Returns <TT CLASS="constant" ><B >FALSE</B ></TT > on failure. </P ><P > The <B CLASS="function" >imap_check()</B > function checks the current mailbox status on the server and returns the information in an object with following properties: </P ><P > <P ></P ><UL ><LI ><P > Date - last change of mailbox contents </P ></LI ><LI ><P > Driver - protocol used to access this mailbox: POP3, IMAP, NNTP </P ></LI ><LI ><P > Mailbox - the mailbox name </P ></LI ><LI ><P > Nmsgs - number of messages in the mailbox </P ></LI ><LI ><P > Recent - number of recent messages in the mailbox </P ></LI ></UL > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.imap-bodystruct.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.imap-clearflag-full.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >imap_bodystruct</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.imap.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >imap_clearflag_full</TD ></TR ></TABLE ></DIV ></BODY ></HTML >