当前位置: 首页>>代码示例>>PHP>>正文


PHP imap_mailboxmsginfo函数代码示例

本文整理汇总了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;
 }
开发者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


注:本文中的imap_mailboxmsginfo函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。