Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imap_getsubscribed(3) [php man page]

IMAP_GETSUBSCRIBED(3)							 1						     IMAP_GETSUBSCRIBED(3)

imap_getsubscribed - List all the subscribed mailboxes

SYNOPSIS
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 mailboxes

SYNOPSIS
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)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mailbox Nightmares!

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)
Discussion started by: enzophite
1 Replies

2. Programming

getting file words as pattern matching

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)
Discussion started by: arunkumar_mca
5 Replies

3. Shell Programming and Scripting

reason: 553 Requested action not taken: mailbox name not allowed

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)
Discussion started by: jhansrod
2 Replies

4. UNIX for Dummies Questions & Answers

please help on this

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)
Discussion started by: ss4u
1 Replies

5. Programming

which language will be the best

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)
Discussion started by: clueless
4 Replies

6. Shell Programming and Scripting

Confusing Error

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)
Discussion started by: Pankajakshan
2 Replies

7. UNIX for Dummies Questions & Answers

Delete all mails on Solaris

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)
Discussion started by: rahulrathod
3 Replies

8. UNIX for Dummies Questions & Answers

Can 'file' be used recursively?

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)
Discussion started by: jsmith_4242
4 Replies

9. BSD

Unable to process from lines (envelopes)

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)
Discussion started by: sc_king
1 Replies

10. HP-UX

email mailbox output -

this was handy for me. stout goes to mail here. #mailbox pgm=mailbox USER1=`eval whoami` ... (2 Replies)
Discussion started by: Bill L.
2 Replies

11. Post Here to Contact Site Administrators and Moderators

Can't POP the mails off the server, the mailbox is corrupt!

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)
Discussion started by: Nancy L
1 Replies

12. UNIX for Dummies Questions & Answers

Can't POP the mails off the server, the mailbox is corrupt!

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)
Discussion started by: Nancy L
7 Replies