source: www/manuals/PHP_manual/function.imap-fetch-overview.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 4.6 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>imap_fetch_overview</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="IMAP, POP3 and NNTP functions"
13HREF="ref.imap.html"><LINK
14REL="PREVIOUS"
15TITLE="imap_expunge"
16HREF="function.imap-expunge.html"><LINK
17REL="NEXT"
18TITLE="imap_fetchbody"
19HREF="function.imap-fetchbody.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.imap-expunge.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.imap-fetchbody.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.imap-fetch-overview"
75></A
76>imap_fetch_overview</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN34017"
81></A
82><P
83> (PHP 3&#62;= 3.0.4, PHP 4 )</P
84>imap_fetch_overview&nbsp;--&nbsp;
85 Read an overview of the information in the headers of the given message
86 </DIV
87><DIV
88CLASS="refsect1"
89><A
90NAME="AEN34020"
91></A
92><H2
93>Description</H2
94>array <B
95CLASS="methodname"
96>imap_fetch_overview</B
97> ( resource imap_stream, string sequence [, int options])<BR
98></BR
99><P
100>&#13; This function fetches mail headers for the given
101 <TT
102CLASS="parameter"
103><I
104>sequence</I
105></TT
106> and returns an overview of their
107 contents. <TT
108CLASS="parameter"
109><I
110>sequence</I
111></TT
112> will contain a sequence
113 of message indices or UIDs, if <TT
114CLASS="parameter"
115><I
116>flags</I
117></TT
118>
119 contains FT_UID. The returned value is an array of objects
120 describing one message header each:
121 <P
122></P
123><UL
124><LI
125><P
126>&#13; subject - the messages subject
127 </P
128></LI
129><LI
130><P
131>&#13; from - who sent it
132 </P
133></LI
134><LI
135><P
136>&#13; date - when was it sent
137 </P
138></LI
139><LI
140><P
141>&#13; message_id - Message-ID
142 </P
143></LI
144><LI
145><P
146>&#13; references - is a reference to this message id
147 </P
148></LI
149><LI
150><P
151>&#13; size - size in bytes
152 </P
153></LI
154><LI
155><P
156>&#13; uid - UID the message has in the mailbox
157 </P
158></LI
159><LI
160><P
161>&#13; msgno - message sequence number in the maibox
162 </P
163></LI
164><LI
165><P
166>&#13; recent - this message is flagged as recent
167 </P
168></LI
169><LI
170><P
171>&#13; flagged - this message is flagged
172 </P
173></LI
174><LI
175><P
176>&#13; answered - this message is flagged as answered
177 </P
178></LI
179><LI
180><P
181>&#13; deleted - this message is flagged for deletion
182 </P
183></LI
184><LI
185><P
186>&#13; seen - this message is flagged as already read
187 </P
188></LI
189><LI
190><P
191>&#13; draft - this message is flagged as being a draft
192 </P
193></LI
194></UL
195>
196 </P
197><P
198>&#13; <TABLE
199WIDTH="100%"
200BORDER="0"
201CELLPADDING="0"
202CELLSPACING="0"
203CLASS="EXAMPLE"
204><TR
205><TD
206><DIV
207CLASS="example"
208><A
209NAME="AEN34068"
210></A
211><P
212><B
213>Pøíklad 1. <B
214CLASS="function"
215>imap_fetch_overview()</B
216> example</B
217></P
218><TABLE
219BORDER="0"
220BGCOLOR="#E0E0E0"
221CELLPADDING="5"
222><TR
223><TD
224><PRE
225CLASS="php"
226>$mbox = imap_open("{your.imap.host:143}","username","password")
227 or die("can't connect: ".imap_last_error());
228
229$overview = imap_fetch_overview($mbox,"2,4:6",0);
230
231if(is_array($overview)) {
232 reset($overview);
233 while( list($key,$val) = each($overview)) {
234 print $val-&#62;msgno
235 . " - " . $val-&#62;date
236 . " - " . $val-&#62;subject
237 . "\n";
238 }
239}
240
241imap_close($mbox);</PRE
242></TD
243></TR
244></TABLE
245></DIV
246></TD
247></TR
248></TABLE
249>
250 </P
251></DIV
252><DIV
253CLASS="NAVFOOTER"
254><HR
255ALIGN="LEFT"
256WIDTH="100%"><TABLE
257SUMMARY="Footer navigation table"
258WIDTH="100%"
259BORDER="0"
260CELLPADDING="0"
261CELLSPACING="0"
262><TR
263><TD
264WIDTH="33%"
265ALIGN="left"
266VALIGN="top"
267><A
268HREF="function.imap-expunge.html"
269ACCESSKEY="P"
270>Pøedcházející</A
271></TD
272><TD
273WIDTH="34%"
274ALIGN="center"
275VALIGN="top"
276><A
277HREF="index.html"
278ACCESSKEY="H"
279>Domù</A
280></TD
281><TD
282WIDTH="33%"
283ALIGN="right"
284VALIGN="top"
285><A
286HREF="function.imap-fetchbody.html"
287ACCESSKEY="N"
288>Dal¹í</A
289></TD
290></TR
291><TR
292><TD
293WIDTH="33%"
294ALIGN="left"
295VALIGN="top"
296>imap_expunge</TD
297><TD
298WIDTH="34%"
299ALIGN="center"
300VALIGN="top"
301><A
302HREF="ref.imap.html"
303ACCESSKEY="U"
304>Nahoru</A
305></TD
306><TD
307WIDTH="33%"
308ALIGN="right"
309VALIGN="top"
310>imap_fetchbody</TD
311></TR
312></TABLE
313></DIV
314></BODY
315></HTML
316>
Note: See TracBrowser for help on using the repository browser.