我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

imap_status一次读取两个邮箱

is it possible two get the number of messages and the number of the unseen messages, from two mailboxes, in only one imap_status() request?

Thanks for your answers!

No, the STATUS command in IMAP takes one mailbox, and a set of query items.

The STATUS command can, however, be executed in parallel. If your IMAP library doesn't support asynchronous command execution, get a better one.

Make a php loop. If you have 3 mailboxes with different account. So make it a loop to fetch the status one by one.

近期文章

  • 如何在PHP中以适当的json格式转换包含多个json数据的字符串?
  • Opencart在搜索页面中显示模型代码
  • 我怎样才能将(?)url分成maindomain + rest?
  • 如何在CakePHP中编写查询?
  • 我使用日期函数时的PHP警告[重复]
  • PHP:获取包含此值的唯一数组
  • PHP中的字符串比较[重复]
  • 来自多维数组的mongodb pull元素
  • HTML空<a>标签空白?
  • print_r - 格式化SimpleXLSX数据?
  • 无法从DB检索图像
  • 使用PHP下载“双向代理”? (一个服务器提供文件,并使用客户端数据ping另一个服务器)
  • PHP计数器仅覆盖/溢出1个字节的数据,计数器重置(竞争条件)
  • 在PHP中清理自定义异常类的代码
  • 在自定义字段上回显文本而不是HTML格式的字符串
  • 通过邮件跨站点HTTP
  • 树枝中的动态JS路线[重复]
  • WP短代码将变量传递给函数
  • 如何从php文件中使用FPDF
  • PHP的差异行为显示xml

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华