本文整理汇总了PHP中imap_mailboxmsginfo函数的典型用法代码示例。如果您正苦于以下问题:PHP imap_mailboxmsginfo函数的具体用法?PHP imap_mailboxmsginfo怎么用?PHP imap_mailboxmsginfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了imap_mailboxmsginfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mailInfo
/**
* Get information about the current mailbox
*
* @return object|bool
*/
public function mailInfo()
{
$this->_mailInfo = imap_mailboxmsginfo($this->_connection);
if (!$this->_mailInfo) {
echo "get mailInfo failed: " . imap_last_error();
return false;
}
return $this->_mailInfo;
}
示例2: pop3_stat
public function pop3_stat($connection = null)
{
if ($this->connection) {
$check = imap_mailboxmsginfo($this->connection);
return (array) $check;
} else {
return NULL;
}
}
示例3: info
function info($inBox)
{
global $user, $pass;
//
$mbox = imap_open($inBox, $user, $pass);
if (!$mbox) {
die("Mailbox open FAILED.");
}
//
$info = imap_mailboxmsginfo($mbox);
//
imap_close($mbox);
return $info;
}
示例4: __construct
/**
* Constructs a new iNotePrecipitator object.
*
* @param string $email The email address used to log into the iCloud account.
* @param string $password The password used to log into the iCloud account.
*/
function __construct($email, $password)
{
//explode email address into username and domain
$this->username = explode("@", $email)[0];
$this->domain = explode("@", $email)[1];
//Open the connection to iCloud notes mailbox
$this->imap = imap_open('{imap.mail.me.com:993/imap/ssl}Notes', $this->username, $password);
//set the login status
if (!$this->imap) {
$this->login_success = FALSE;
} else {
$this->login_success = TRUE;
}
//get our mailbox info
$this->notes_mailbox_info = get_object_vars(imap_mailboxmsginfo($this->imap));
}
示例5: getMessageBoxStatsDetailed
/**
* Get detailed info about imap mail box
*/
public function getMessageBoxStatsDetailed()
{
return imap_mailboxmsginfo($this->imapStream);
}
示例6: mailbox_info
public function mailbox_info($type = 'obj')
{
if ($this->stream) {
$info = imap_mailboxmsginfo($this->stream);
if ($info) {
if ($type == 'array') {
$info_array = get_object_vars($info);
return $info_array;
} else {
return $info;
}
} else {
// There was an error
return imap_last_error();
}
}
// Not connected
return imap_last_error();
}
示例7: getInfo
/**
* Get information about the current mailbox
*/
public function getInfo()
{
// note: imap_mailboxmsginfo not quite support pop3
if ($this->service == 'imap') {
$this->info = imap_mailboxmsginfo($this->stream);
} else {
$this->info = imap_status($this->stream, $this->mailbox_params, $option);
}
return $this->info;
}
示例8: getMailBoxInfo
public function getMailBoxInfo($imap)
{
$mailboxinfo = imap_mailboxmsginfo($imap);
//print_r($recentmessagecount);
return $mailboxinfo;
}
示例9: stat
public function stat()
{
$check = imap_mailboxmsginfo($this->conn);
return (array) $check;
}
示例10: pathStat
function pathStat($p)
{
$ret = array();
// $ret = imap_status($this->_c, self::folderName($p), SA_ALL);
// print_r($ret);
// $x = $this->stat();
// print_r($x);
$ret['msg_max'] = imap_num_msg($this->_c);
$ret['msg_info'] = imap_mailboxmsginfo($this->_c);
return $ret;
}
示例11: getMail
/**
* @param $callback function that is called with parsed mail header + attachments
*/
function getMail($callback = '', $timeout = 30)
{
if (!$this->connect()) {
echo "ERROR: IMAP connection to " . $this->server . ":" . $this->port . " failed\n";
return false;
}
$folders = imap_listmailbox($this->handle, '{' . $this->server . ':' . $this->port . '}', '*');
$msginfo = imap_mailboxmsginfo($this->handle);
//dp('found '.$msginfo->Nmsgs.' messages in mailbox');
$this->tot_mails = $msginfo->Nmsgs;
for ($i = 1; $i <= $this->tot_mails; $i++) {
//dp("Downloading ".$i." of ".$this->tot_mails." ...");
//XXX hack because retarded imap_fetchbody() dont allow to fetch the whole message
$fp = fopen('php://temp', 'w');
imap_savebody($this->handle, $fp, $i);
rewind($fp);
$msg = stream_get_contents($fp);
fclose($fp);
$mime = new MimeReader();
$mime->parseMail($msg);
$this->emails[] = $mime->getAsEMail($i);
}
if (!function_exists($callback)) {
throw new \Exception('ERROR callback function ' . $callback . ' not found');
}
call_user_func($callback, $this->emails, $this);
}
示例12: getUnread
public function getUnread()
{
$this->init();
$comprobar = imap_mailboxmsginfo($this->connection->getResource());
return $comprobar->Unread;
}
示例13: getMailboxInfo
function getMailboxInfo($ret = true)
{
// It's possible that this function has already been called by $this->connect
// If so, the 'Mailbox' indice will already exist and the user just wants
// the contents of the mailboxInfo member variable.
if (!isset($this->mailboxInfo['Mailbox'])) {
$this->mailboxInfo = @array_merge($this->mailboxInfo, get_object_vars(imap_mailboxmsginfo($this->mailbox)));
}
return $ret ? $this->mailboxInfo : true;
}
示例14: ConnectionHandler
$tipoMed = $_SESSION['tipoMedio'];
$db = new ConnectionHandler("{$ruta_raiz}");
$db->conn->SetFetchMode(ADODB_FETCH_ASSOC);
$eMailMid = $_SESSION['eMailMid'];
//$db->conn->debug =true;
//$sqlFechaHoy=$db->conn->query("select * from usuario");
$tmpNameEmail = $_SESSION['tmpNameEmail'];
include "connectIMAP.php";
$chequeo = imap_mailboxmsginfo($buzonImap);
echo "Mensajes antes de borrar: " . $chequeo->Nmsgs . "<br />\n";
echo "a Borrar {$eMailMid} ";
imap_delete($buzonImap, $eMailMid);
$chequeo = imap_mailboxmsginfo($buzonImap);
echo "Mensajes después de borrar: " . $chequeo->Nmsgs . "<br />\n";
imap_expunge($buzonImap);
$chequeo = imap_mailboxmsginfo($buzonImap);
echo "Mensajes después de purgar: " . $chequeo->Nmsgs . "<br />\n";
imap_close($buzon);
?>
<html>
<head>
<title>:: Confirmacion Borrado de Mail ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../estilos_totales.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0">
Borrando el Correo Electronico . . ..
<form method=post action="deleteMail.php??nurad=<?php
echo $nurad;
?>
示例15: getMailBoxmsgInfo
public static function getMailBoxmsgInfo($userid = false)
{
if ($userid) {
$Accounts = self::get_account_detail($userid);
} else {
$Accounts = self::get_active_email_account();
}
if (!$Accounts) {
return false;
}
$mbox = self::imap_connect($Accounts[0]['username'], $Accounts[0]['password']);
$mailboxmsginfo = imap_mailboxmsginfo($mbox);
return $mailboxmsginfo;
}