IMAP_LISTSCAN(3) 1 IMAP_LISTSCAN(3)imap_listscan - Returns the list of mailboxes that matches the given textSYNOPSIS
array imap_listscan (resource $imap_stream, string $ref, string $pattern, string $content)
DESCRIPTION
Returns an array containing the names of the mailboxes that have $content in the text of the mailbox.
This function is similar to imap_listmailbox(3), but it will additionally check for the presence of the string $content inside the mailbox
data.
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.
o $content
- The searched string
RETURN VALUES
Returns an array containing the names of the mailboxes that have $content in the text of the mailbox.
SEE ALSO imap_listmailbox(3), imap_search(3).
PHP Documentation Group IMAP_LISTSCAN(3)
Check Out this Related Man Page
IMAP_REOPEN(3) 1 IMAP_REOPEN(3)imap_reopen - ReopenIMAPstream to new mailboxSYNOPSIS
bool imap_reopen (resource $imap_stream, string $mailbox, [int $options], [int $n_retries])
DESCRIPTION
Reopens the specified stream to a new $mailbox on an IMAP or NNTP server.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $mailbox
- The mailbox name, see imap_open(3) for more information
o $options
- The $options are a bit mask with one or more of the following:
o OP_READONLY - Open mailbox read-only
o OP_ANONYMOUS - Don't use or update a .newsrc for news (NNTP only)
o OP_HALFOPEN - For IMAP and NNTP names, open a connection but don't open a mailbox.
o OP_EXPUNGE - Silently expunge recycle stream
o CL_EXPUNGE - Expunge mailbox automatically upon mailbox close (see also imap_delete(3) and imap_expunge(3))
o $n_retries
- Number of maximum connect attempts
RETURN VALUES
Returns TRUE if the stream is reopened, FALSE otherwise.
CHANGELOG
+--------+------------------+
|Version | |
| | |
| | Description |
| | |
+--------+------------------+
| 5.2.0 | |
| | |
| | $n_retries added |
| | |
+--------+------------------+
EXAMPLES
Example #1
imap_reopen(3) example
<?php
$mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
// ...
imap_reopen($mbox, "{imap.example.org:143}INBOX.Sent") or die(implode(", ", imap_errors()));
// ..
?>
PHP Documentation Group IMAP_REOPEN(3)
Hi All,
I have a file like below which is having 3 fields namely companycode, companylocation & companyaddress and i want to separate all the fields individually.
How can i do?
File Structure:
----------------
Aberdeen Centre Aberdeen The Ming An Ins Co (HK) Ltd
Academic... (30 Replies)
Hello everybody, I'm new in this forum.
I searched a long time for a solution for my problem but I didn't find the right thing.
I have to read from a file (content is "abngjm" without any other signs) and have to write this content in an array. But every sign has to be called by its own... (5 Replies)
Hello all!!
i got a problem in the email content format in outlook which i mail it from a unix.
i want the content to be multiple lines as i see in unix, but the content is grouped into a single line instead in the email content.
The email content is made from tail of a file, and echo... (4 Replies)
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
Hi,
I would like to return the last part of a string in an array of strings in bash.
The array contains in each position the content below:
and I would like to return only the last part of each string.
The correct result would be:
How can I do that in bash using AWK?... (7 Replies)
I have two files,
sec.txt(1st File)
3172
disp.txt(2nd file)
the file name is
***********
45676
Now i want to compare the value in sec.txt file with disp.txt file
Excatly i want to compare the value 3172 in first file and 45676 in second file.
i want to compare the first line of... (11 Replies)
Hi,
May i ask if someone share some command for extracting a string between 2 ref string in a txt file
My objective: i had a file with multiple lines and wants only to extract the string "watch?v=IbkAXOmEHpY" or "watch?v=<11 random character>", when i used "grep 'watch?=*' i got a results per... (4 Replies)
hi all,
I want to Represent the data in table format in mail content
sample data should be like this...but i m trying to send this table to mail using unix command...hw do i do????even i echoed the table contents ...doesnt work.... help me
<table style="background-color:lightblue;">... (8 Replies)
Hi ladies and gentleman.. I have two text file with me. I need to replace one of the file content to another file if one both files have a matching pattern.
Example:
text1.txt:
ABCD 1234567,HELLO_WORLDA,HELLO_WORLDB
DCBA 3456789,HELLO_WORLDE,HELLO_WORLDF
text2.txt:
XXXX,ABCD... (25 Replies)
Hi all,
I got a file that contains the following content, Actually it is a part of the file content,
Installing XYZ XYZA Image, API 18, revision 2
Unzipping XYZ XYZA Image, API 18, revision 2 (1%)
Unzipping XYZ XYZA Image, API 18, revision 2 (96%)
Unzipping XYZ XYZA Image, API 18,... (7 Replies)
Hi,
I have a file with following pattern. We are looking to filter out only specific content from this file.
sample
BLAdmins Server.*
LinuxAdmins Server.*
Policy Name: Recommended Default ACL Policy
Everyone ACLPushJob.Read
Everyone ACLTemplate.Read
Everyone ... (9 Replies)
I need that a certain part of the content below excluded
==Image Gallery== followed by <gallery> and the content until </gallery>
test SED1
==Image Gallery==
<gallery>
Image:car1.jpg| Car 1<sup>1</sup>
Imagem: car2.jpg| Car2<sup>2</sup>
</gallery> test SED2
==Image... (5 Replies)
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)
Dear All,
I would like to instantiate a "pattern file" substituting "variable name" by their content.
Saying, we have:
1/ a "pattern file" containing different "variable name", the first character of the "variable name" is "@":
$ cat TPTModl.txt
DEFINE... (12 Replies)
Hello,
My OS is Windows 10 and I am using Cygwin.
The content of file 1 is:
XXX string1
The content of file 2 is
4.156
2.312
3.527
1.687
etc....
I need to replace string 1 in file 1 by the content of line n in file 2.
So the expected output is e.g.:
XXX 3.527 (for n = 3)
I... (14 Replies)