IMAP function library: Imap_listmailbox

Source: Internet
Author: User
Keywords Imap_listmailbox imap function Library php Chinese function manual
Tags aliyun array content function function library html http imap function library

Imap_listmailbox

Gets the mailbox listing.

Syntax: array imap_listmailbox (int stream_id, string ref, String pattern);

return value: Array

Function type: http://www.aliyun.com/zixun/aggregation/32416.html "> network system

Content Description

This function gets a mailbox listing. Parameter Imap_stream for IMAP 5643.html "> code. Parameter ref is typically an IMAP server name, as the following example. The parameter pattern can be used as a universal character * to represent all the paths, aayawa@yahoo.com and indicates (27-apr-1999) if this parameter is substituting "" (null character), the data will not be returned.

Usage examples


This example is alank@shermanloan.com in 02-jun-1999.

<?php
$Account = "myID";
$Password = "MYPASSWD";
$mailbox = Imap_open ("{Mail.xyz.com:143}inbox", $Account, $Password);
if ($mailbox) {
$mailboxes = Imap_listmailbox ($mailbox, "{mail.xyz.com:143}", "*");
for ($index = 0; $index < count ($mailboxes); $index + +) {
Print ($mailboxes [$index]. "\ n");
}
Imap_close ($mailbox);
else {
Print ("Unable to/font>} open $Account mailbox. \ n");
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.