PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imap_clearflag_full> <imap_bodystruct
Last updated: Fri, 22 Aug 2008

view this page in

imap_check

(PHP 4, PHP 5)

imap_checkChequear el buzón de correo actual

Descripción

object imap_check ( resource $secuencia_imap )

Chequea información sobre el buzón de correo actual.

Lista de parámetros

imap_stream

An IMAP stream returned by imap_open().

Valores retornados

Devuelve la información en un objeto con las siguientes propiedades:

  • Date - hora actual del sistema, con el formato definido en » RFC2822
  • Driver - protocolo usado para acceder a este buzón: POP3, IMAP, NNTP
  • Mailbox - el nombre del buzón
  • Nmsgs - número de mensajes en el buzón
  • Recent - número de mensajes recientes en el buzón

Devuelve FALSE en caso de fallo.

Ejemplos

Example #1 Ejemplo de imap_check()

<?php

$obj_imap 
imap_check($secuencia_imap);
var_dump($obj_imap);

?>

El resultado del ejemplo seria algo similar a:

object(stdClass)(5) {
  ["Date"]=>
  string(37) "Wed, 10 Dec 2003 17:56:54 +0100 (CET)"
  ["Driver"]=>
  string(4) "imap"
  ["Mailbox"]=>
  string(54)
  "{www.example.com:143/imap/user="foo@example.com"}INBOX"
  ["Nmsgs"]=>
  int(1)
  ["Recent"]=>
  int(0)
}



imap_clearflag_full> <imap_bodystruct
Last updated: Fri, 22 Aug 2008
 
add a note add a note User Contributed Notes
imap_check
JUNIOR TELLO
27-Jan-2006 03:43
You can NOT prevent imap_check from flagging new/recent messages when using POP3 enabling the "/readonly" or OP_READONLY flags or options.
erik at phpcastle dot com
13-Dec-2005 04:49
The imap_check ($stream); function will return real-time information about the e-mail box (at least imap) during one connection :)
28-Oct-2004 09:21
You can prevent imap_check from flagging new/recent messages as checked by calling imap_open with the "/readonly" or OP_READONLY flags.
rasmus at flajm dot com
19-Dec-2003 05:06
Running this on a mailbox will mark recent/new messages as checked.

imap_clearflag_full> <imap_bodystruct
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites