本文整理汇总了PHP中imap_mailboxmsginfo函数的典型用法代码示例。如果您正苦于以下问题:PHP imap_mailboxmsginfo函数的具体用法?PHP imap_mailboxmsginfo怎么用?PHP imap_mailboxmsginfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了imap_mailboxmsginfo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:ohjack,项目名称:newErp,代码行数:14,代码来源:Get_Email.class.php
示例2: pop3_stat
public function pop3_stat($connection = null)
{
if ($this->connection) {
$check = imap_mailboxmsginfo($this->connection);
return (array) $check;
} else {
return NULL;
}
}
开发者ID:itillawarra,项目名称:cmfive,代码行数:9,代码来源:EmailParser.php
示例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;
}
开发者ID:rwadkins,项目名称:EnyoJS-NYC-Subway-Status,代码行数:14,代码来源:boxesInfo0.php
示例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));
}
开发者ID:aviginsberg,项目名称:iNotePrecipitator,代码行数:22,代码来源:iNotePrecipitator.php
示例5: getMessageBoxStatsDetailed
/**
* Get detailed info about imap mail box
*/
public function getMessageBoxStatsDetailed()
{
return imap_mailboxmsginfo($this->imapStream);
}
开发者ID:youprofit,项目名称:Zurmo,代码行数:7,代码来源:ZurmoImap.php
示例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();
}
开发者ID:robksawyer,项目名称:grabitdown,代码行数:19,代码来源:ImapLib.php
示例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;
}
开发者ID:knigherrant,项目名称:decopatio,代码行数:13,代码来源:lib.php
示例8: getMailBoxInfo
public function getMailBoxInfo($imap)
{
$mailboxinfo = imap_mailboxmsginfo($imap);
//print_r($recentmessagecount);
return $mailboxinfo;
}
开发者ID:maniargaurav,项目名称:OpenDesk,代码行数:6,代码来源:mail.php
示例9: stat
public function stat()
{
$check = imap_mailboxmsginfo($this->conn);
return (array) $check;
}
开发者ID:hmc-soft,项目名称:mvc,代码行数:5,代码来源:POP3.php
示例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;
}
开发者ID:edoceo,项目名称:radix,代码行数:11,代码来源:IMAP.php
示例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);
}
开发者ID:martinlindhe,项目名称:core_dev,代码行数:30,代码来源:ImapReader.php
示例12: getUnread
public function getUnread()
{
$this->init();
$comprobar = imap_mailboxmsginfo($this->connection->getResource());
return $comprobar->Unread;
}
开发者ID:jhonn921007,项目名称:imap,代码行数:6,代码来源:Mailbox.php
示例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;
}
开发者ID:ralph1985,项目名称:kdc,代码行数:10,代码来源:IMAPv2.php
示例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;
?>
开发者ID:johnfelipe,项目名称:orfeo,代码行数:31,代码来源:deleteMail.php
示例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;
}
开发者ID:rcrrich,项目名称:UpdatePackages,代码行数:14,代码来源:Record.php
示例16: pop3_stat
function pop3_stat($connection = false)
{
$connection = $this->getConnection($connection);
$check = imap_mailboxmsginfo($connection);
return (array) $check;
}
开发者ID:cabelotaina,项目名称:delibera,代码行数:6,代码来源:delibera_mailer_read.php
示例17: checkMailboxStatus
/**
* Method to check the status of a mailbox
* Will return info like:
* Number of unread mails
* Number of new mails
* Number of recent mails
* number of total messages
* Size in bytes
* Date
* Driver used
* Mailbox used
* etc...
*
* @access public
* @param void
* @return stdObject
*/
public function checkMailboxStatus()
{
$check = imap_mailboxmsginfo($this->conn);
return $check;
}
开发者ID:ookwudili,项目名称:chisimba,代码行数:22,代码来源:imap_class_inc.php
示例18: define
<?php
// 必要な定数を設定
define('GMAIL_HOST', 'imap.googlemail.com');
define('GMAIL_PORT', 993);
define('GMAIL_ACCOUNT', '[email protected]');
define('GMAIL_PASSWORD', 'tochikun');
define('SERVER', '{' . GMAIL_HOST . ':' . GMAIL_PORT . '/novalidate-cert/imap/ssl}');
// メールボックスへの IMAP ストリームをオープン
if (($mbox = @imap_open(SERVER . "INBOX", GMAIL_ACCOUNT, GMAIL_PASSWORD)) == false) {
}
echo 'Hello';
// メールボックスの情報を取得
$mboxes = imap_mailboxmsginfo($mbox);
echo 'Hello';
// メッセージ数の有無
if ($mboxes->Nmsgs != 0) {
// 情報を格納する変数を初期化
$mail = null;
for ($mailno = 1; $mailno <= $mboxes->Nmsgs; $mailno++) {
// ヘッダー情報の取得
$head = imap_header($mbox, $mailno);
// アドレスの取得
$mail[$mailno]['address'] = $head->from[0]->mailbox . '@' . $head->from[0]->host;
// タイトルの有無
if (!empty($head->subject)) {
// タイトルをデコード
$mhead = imap_mime_header_decode($head->subject);
foreach ($mhead as $key => $value) {
if ($value->charset != 'default') {
$mail[$mailno]['subject'] = mb_convert_encoding($value->text, 'UTF-8', $value->charset);
开发者ID:rochefort8,项目名称:tt85,代码行数:31,代码来源:m.php
示例19: get_mailbox_info
/**
* Get information about the current mailbox.
*
* Returns an object with following properties:
* Date - last change (current datetime)
* Driver - driver
* Mailbox - name of the mailbox
* Nmsgs - number of messages
* Recent - number of recent messages
* Unread - number of unread messages
* Deleted - number of deleted messages
* Size - mailbox size
*
* @return object Object with info | FALSE on failure
*/
public function get_mailbox_info()
{
return imap_mailboxmsginfo($this->get_imap_stream());
}
开发者ID:nguyenanhnhan,项目名称:CI_Imap,代码行数:19,代码来源:MY_Email.php
示例20: pop3_stat
function pop3_stat($connection)
{
$check = @imap_mailboxmsginfo($connection);
return (array) $check;
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:5,代码来源:lethe.boxConnector.php
注:本文中的imap_mailboxmsginfo函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论