IMAP_GETSUBSCRIBED(3) 1 IMAP_GETSUBSCRIBED(3)imap_getsubscribed - List all the subscribed mailboxesSYNOPSIS
array imap_getsubscribed (resource $imap_stream, string $ref, string $pattern)
DESCRIPTION
Gets information about the subscribed mailboxes.
Identical to imap_getmailboxes(3), except that it only returns mailboxes that the user is subscribed to.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $ref
-$ref should normally be just the server specification as described in imap_open(3)
o $pattern
-Specifies where in the mailbox hierarchy to start searching.There are two special characters you can pass as part of the $pat-
tern: ' *' and ' %'. ' *' means to return all mailboxes. If you pass $pattern as ' *', you will get a list of the entire mailbox
hierarchy. ' %' means to return the current level only. ' %' as the $pattern parameter will return only the top level mailboxes; '
~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory.
RETURN VALUES
Returns an array of objects containing mailbox information. Each object has the attributes $name, specifying the full name of the mailbox;
$delimiter, which is the hierarchy delimiter for the part of the hierarchy this mailbox is in; and $attributes. $Attributes is a bitmask
that can be tested against:
o LATT_NOINFERIORS - This mailbox has no "children" (there are no mailboxes below this one).
o LATT_NOSELECT - This is only a container, not a mailbox - you cannot open it.
o LATT_MARKED - This mailbox is marked. Only used by UW-IMAPD.
o LATT_UNMARKED - This mailbox is not marked. Only used by UW-IMAPD.
PHP Documentation Group IMAP_GETSUBSCRIBED(3)
Check Out this Related Man Page
IMAP_LIST(3) 1 IMAP_LIST(3)imap_list - Read the list of mailboxesSYNOPSIS
array imap_list (resource $imap_stream, string $ref, string $pattern)
DESCRIPTION
Read the list of mailboxes.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $ref
-$ref should normally be just the server specification as described in imap_open(3).
o $pattern
-Specifies where in the mailbox hierarchy to start searching.There are two special characters you can pass as part of the $pat-
tern: ' *' and ' %'. ' *' means to return all mailboxes. If you pass $pattern as ' *', you will get a list of the entire mailbox
hierarchy. ' %' means to return the current level only. ' %' as the $pattern parameter will return only the top level mailboxes; '
~/mail/%' on UW_IMAPD will return every mailbox in the ~/mail directory, but none in subfolders of that directory.
RETURN VALUES
Returns an array containing the names of the mailboxes.
EXAMPLES
Example #1
imap_list(3) example
<?php
$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN)
or die("can't connect: " . imap_last_error());
$list = imap_list($mbox, "{imap.example.org}", "*");
if (is_array($list)) {
foreach ($list as $val) {
echo imap_utf7_decode($val) . "
";
}
} else {
echo "imap_list failed: " . imap_last_error() . "
";
}
imap_close($mbox);
?>
SEE ALSO imap_getmailboxes(3), imap_lsub(3).
PHP Documentation Group IMAP_LIST(3)
I would like to migrate my current system's mailboxes to mail folders and i'm currently running exim! Anyone help with a new mail server and the migration to the one? (1 Reply)
Sir,
I want to check for the repation of a user address in a file i used || as my delimiter and want to check repetaip0n of the address that is mailid and then i have to use IMAP and all.
How can i do this...
I am in linux ...and my file is linux file.
... (5 Replies)
Hi all
I am sending a mail form a AIX5.2 system to a exchangse server. I get a return receipt as follows :-
----- The following addresses had permanent fatal errors -----
ITS-TOSG@mycompany.com
(reason: 553 Requested action not taken: mailbox name not allowed)
----- Transcript of... (2 Replies)
iam newbie to unix please help on this.
1.how can we now how many mails we have in your mail box in solaris or unix operating sysem?
2.how can we enter(open) into mailbox?
3.how can we delete unwanted mails from mbox?
4.how can we read the wanted(particular) mail from mbox? (1 Reply)
Hello, Ive got to amke a script to calculate how many emails are in the servers mailbox, how many times each IP address appears in the mailbox and to search for keywords, tehn produce the results in HTML report. The thing is I dont know where to start and what the best language to use would be.
... (4 Replies)
Hi all,
Just subscribed to this forum. Not a regular user of Unix.:)
I did the following:
We have a directory structure /a/b/c5/
Where c5 is the only directory inside b.
export ANOOP=/a/b/c*/
echo $ANOOP=/a/b/c5/
I have to create a symbolic link to anoop.txt in the directory... (2 Replies)
How do I delete all my mails in the mailbox on Solaris?
$mail
? d *
Illegal numeric
?
d * does not work. Also I want to retain the mailbox.
Thanks,
Rahul. (3 Replies)
I'd like find all the files with names containing a certain pattern, in a directory hierarchy - not just a single directory.
For example:
file *.txt
But throughout the entire hierarchy.
Can this be done? If so, how?
Thank you (4 Replies)
Hi,
Some of the users on my freebsd server are getting the "unable to process from lines" error when accessing their mailbox.
I've checked their mailbox and found that there was a blank line at the top of the mailbox.
Everytime i remove it, it appears again sometime later.
I've tried... (1 Reply)
SCO OpenServer(TM) Release 5 (worf.xxx.com)
Worf is my proxy Server, and it runs my Lan with windows PCs, wk2s & XPs. There are only two users who POP the mailbox from the Server to client, elena and me nancy! elena can POP her email mailbox is just fine.
We use Eudora and for years we... (1 Reply)
First, please forgive me for my 2nd attempt to post in a Forum!
And btw, the Code Tags tutorial has the fonts and the sizes,
but when I am editing my post none of those fonts and sizes
are not there!
SCO OpenServer(TM) Release 5 (worf.xxx.com)
Worf is our proxy & POP Server, and it... (7 Replies)