1 | <HTML
|
---|
2 | ><HEAD
|
---|
3 | ><TITLE
|
---|
4 | >imap_headerinfo</TITLE
|
---|
5 | ><META
|
---|
6 | NAME="GENERATOR"
|
---|
7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
---|
8 | REL="HOME"
|
---|
9 | TITLE="Manuál PHP"
|
---|
10 | HREF="index.html"><LINK
|
---|
11 | REL="UP"
|
---|
12 | TITLE="IMAP, POP3 and NNTP functions"
|
---|
13 | HREF="ref.imap.html"><LINK
|
---|
14 | REL="PREVIOUS"
|
---|
15 | TITLE="imap_header"
|
---|
16 | HREF="function.imap-header.html"><LINK
|
---|
17 | REL="NEXT"
|
---|
18 | TITLE="imap_headers"
|
---|
19 | HREF="function.imap-headers.html"><META
|
---|
20 | HTTP-EQUIV="Content-type"
|
---|
21 | CONTENT="text/html; charset=ISO-8859-2"></HEAD
|
---|
22 | ><BODY
|
---|
23 | CLASS="refentry"
|
---|
24 | BGCOLOR="#FFFFFF"
|
---|
25 | TEXT="#000000"
|
---|
26 | LINK="#0000FF"
|
---|
27 | VLINK="#840084"
|
---|
28 | ALINK="#0000FF"
|
---|
29 | ><DIV
|
---|
30 | CLASS="NAVHEADER"
|
---|
31 | ><TABLE
|
---|
32 | SUMMARY="Header navigation table"
|
---|
33 | WIDTH="100%"
|
---|
34 | BORDER="0"
|
---|
35 | CELLPADDING="0"
|
---|
36 | CELLSPACING="0"
|
---|
37 | ><TR
|
---|
38 | ><TH
|
---|
39 | COLSPAN="3"
|
---|
40 | ALIGN="center"
|
---|
41 | >Manuál PHP</TH
|
---|
42 | ></TR
|
---|
43 | ><TR
|
---|
44 | ><TD
|
---|
45 | WIDTH="10%"
|
---|
46 | ALIGN="left"
|
---|
47 | VALIGN="bottom"
|
---|
48 | ><A
|
---|
49 | HREF="function.imap-header.html"
|
---|
50 | ACCESSKEY="P"
|
---|
51 | >Pøedcházející</A
|
---|
52 | ></TD
|
---|
53 | ><TD
|
---|
54 | WIDTH="80%"
|
---|
55 | ALIGN="center"
|
---|
56 | VALIGN="bottom"
|
---|
57 | ></TD
|
---|
58 | ><TD
|
---|
59 | WIDTH="10%"
|
---|
60 | ALIGN="right"
|
---|
61 | VALIGN="bottom"
|
---|
62 | ><A
|
---|
63 | HREF="function.imap-headers.html"
|
---|
64 | ACCESSKEY="N"
|
---|
65 | >Dal¹í</A
|
---|
66 | ></TD
|
---|
67 | ></TR
|
---|
68 | ></TABLE
|
---|
69 | ><HR
|
---|
70 | ALIGN="LEFT"
|
---|
71 | WIDTH="100%"></DIV
|
---|
72 | ><H1
|
---|
73 | ><A
|
---|
74 | NAME="function.imap-headerinfo"
|
---|
75 | ></A
|
---|
76 | >imap_headerinfo</H1
|
---|
77 | ><DIV
|
---|
78 | CLASS="refnamediv"
|
---|
79 | ><A
|
---|
80 | NAME="AEN34441"
|
---|
81 | ></A
|
---|
82 | ><P
|
---|
83 | > (PHP 3, PHP 4 )</P
|
---|
84 | >imap_headerinfo -- Read the header of the message</DIV
|
---|
85 | ><DIV
|
---|
86 | CLASS="refsect1"
|
---|
87 | ><A
|
---|
88 | NAME="AEN34444"
|
---|
89 | ></A
|
---|
90 | ><H2
|
---|
91 | >Description</H2
|
---|
92 | >object <B
|
---|
93 | CLASS="methodname"
|
---|
94 | >imap_headerinfo</B
|
---|
95 | > ( resource imap_stream, int msg_number [, int fromlength [, int subjectlength [, string defaulthost]]])<BR
|
---|
96 | ></BR
|
---|
97 | ><P
|
---|
98 | > This function returns an object of various header elements.
|
---|
99 | </P
|
---|
100 | ><P
|
---|
101 | >
|
---|
102 | <DIV
|
---|
103 | CLASS="informalexample"
|
---|
104 | ><A
|
---|
105 | NAME="AEN34466"
|
---|
106 | ></A
|
---|
107 | ><P
|
---|
108 | ></P
|
---|
109 | ><P
|
---|
110 | CLASS="literallayout"
|
---|
111 | ><br>
|
---|
112 | remail, date, Date, subject, Subject, in_reply_to, message_id,<br>
|
---|
113 | newsgroups, followup_to, references<br>
|
---|
114 | <br>
|
---|
115 | message flags:<br>
|
---|
116 | Recent - 'R' if recent and seen, <br>
|
---|
117 | 'N' if recent and not seen, <br>
|
---|
118 | ' ' if not recent<br>
|
---|
119 | Unseen - 'U' if not seen AND not recent, <br>
|
---|
120 | ' ' if seen OR not seen and recent<br>
|
---|
121 | Answered -'A' if answered, <br>
|
---|
122 | ' ' if unanswered<br>
|
---|
123 | Deleted - 'D' if deleted, <br>
|
---|
124 | ' ' if not deleted<br>
|
---|
125 | Draft - 'X' if draft, <br>
|
---|
126 | ' ' if not draft<br>
|
---|
127 | Flagged - 'F' if flagged, <br>
|
---|
128 | ' ' if not flagged<br>
|
---|
129 | <br>
|
---|
130 | NOTE that the Recent/Unseen behavior is a little odd. If you want to<br>
|
---|
131 | know if a message is Unseen, you must check for<br>
|
---|
132 | <br>
|
---|
133 | Unseen == 'U' || Recent == 'N'<br>
|
---|
134 | <br>
|
---|
135 | toaddress (full to: line, up to 1024 characters)<br>
|
---|
136 | <br>
|
---|
137 | to[] (returns an array of objects from the To line, containing):<br>
|
---|
138 | personal<br>
|
---|
139 | adl<br>
|
---|
140 | mailbox<br>
|
---|
141 | host<br>
|
---|
142 | <br>
|
---|
143 | fromaddress (full from: line, up to 1024 characters)<br>
|
---|
144 | <br>
|
---|
145 | from[] (returns an array of objects from the From line, containing):<br>
|
---|
146 | personal<br>
|
---|
147 | adl<br>
|
---|
148 | mailbox<br>
|
---|
149 | host<br>
|
---|
150 | <br>
|
---|
151 | ccaddress (full cc: line, up to 1024 characters)<br>
|
---|
152 | cc[] (returns an array of objects from the Cc line, containing):<br>
|
---|
153 | personal<br>
|
---|
154 | adl<br>
|
---|
155 | mailbox<br>
|
---|
156 | host<br>
|
---|
157 | <br>
|
---|
158 | bccaddress (full bcc line, up to 1024 characters)<br>
|
---|
159 | bcc[] (returns an array of objects from the Bcc line, containing):<br>
|
---|
160 | personal<br>
|
---|
161 | adl<br>
|
---|
162 | mailbox<br>
|
---|
163 | host<br>
|
---|
164 | <br>
|
---|
165 | reply_toaddress (full reply_to: line, up to 1024 characters)<br>
|
---|
166 | reply_to[] (returns an array of objects from the Reply_to line,<br>
|
---|
167 | containing):<br>
|
---|
168 | personal<br>
|
---|
169 | adl<br>
|
---|
170 | mailbox<br>
|
---|
171 | host<br>
|
---|
172 | <br>
|
---|
173 | senderaddress (full sender: line, up to 1024 characters)<br>
|
---|
174 | sender[] (returns an array of objects from the sender line, containing):<br>
|
---|
175 | personal<br>
|
---|
176 | adl<br>
|
---|
177 | mailbox<br>
|
---|
178 | host<br>
|
---|
179 | <br>
|
---|
180 | return_path (full return-path: line, up to 1024 characters)<br>
|
---|
181 | return_path[] (returns an array of objects from the return_path line,<br>
|
---|
182 | containing):<br>
|
---|
183 | personal<br>
|
---|
184 | adl<br>
|
---|
185 | mailbox<br>
|
---|
186 | host<br>
|
---|
187 | <br>
|
---|
188 | udate (mail message date in unix time)<br>
|
---|
189 | <br>
|
---|
190 | fetchfrom (from line formatted to fit <TT
|
---|
191 | CLASS="parameter"
|
---|
192 | ><I
|
---|
193 | >fromlength</I
|
---|
194 | ></TT
|
---|
195 | > <br>
|
---|
196 | characters)<br>
|
---|
197 | <br>
|
---|
198 | fetchsubject (subject line formatted to fit <TT
|
---|
199 | CLASS="parameter"
|
---|
200 | ><I
|
---|
201 | >subjectlength</I
|
---|
202 | ></TT
|
---|
203 | > characters)<br>
|
---|
204 | </P
|
---|
205 | ><P
|
---|
206 | ></P
|
---|
207 | ></DIV
|
---|
208 | >
|
---|
209 | </P
|
---|
210 | ></DIV
|
---|
211 | ><DIV
|
---|
212 | CLASS="NAVFOOTER"
|
---|
213 | ><HR
|
---|
214 | ALIGN="LEFT"
|
---|
215 | WIDTH="100%"><TABLE
|
---|
216 | SUMMARY="Footer navigation table"
|
---|
217 | WIDTH="100%"
|
---|
218 | BORDER="0"
|
---|
219 | CELLPADDING="0"
|
---|
220 | CELLSPACING="0"
|
---|
221 | ><TR
|
---|
222 | ><TD
|
---|
223 | WIDTH="33%"
|
---|
224 | ALIGN="left"
|
---|
225 | VALIGN="top"
|
---|
226 | ><A
|
---|
227 | HREF="function.imap-header.html"
|
---|
228 | ACCESSKEY="P"
|
---|
229 | >Pøedcházející</A
|
---|
230 | ></TD
|
---|
231 | ><TD
|
---|
232 | WIDTH="34%"
|
---|
233 | ALIGN="center"
|
---|
234 | VALIGN="top"
|
---|
235 | ><A
|
---|
236 | HREF="index.html"
|
---|
237 | ACCESSKEY="H"
|
---|
238 | >Domù</A
|
---|
239 | ></TD
|
---|
240 | ><TD
|
---|
241 | WIDTH="33%"
|
---|
242 | ALIGN="right"
|
---|
243 | VALIGN="top"
|
---|
244 | ><A
|
---|
245 | HREF="function.imap-headers.html"
|
---|
246 | ACCESSKEY="N"
|
---|
247 | >Dal¹í</A
|
---|
248 | ></TD
|
---|
249 | ></TR
|
---|
250 | ><TR
|
---|
251 | ><TD
|
---|
252 | WIDTH="33%"
|
---|
253 | ALIGN="left"
|
---|
254 | VALIGN="top"
|
---|
255 | >imap_header</TD
|
---|
256 | ><TD
|
---|
257 | WIDTH="34%"
|
---|
258 | ALIGN="center"
|
---|
259 | VALIGN="top"
|
---|
260 | ><A
|
---|
261 | HREF="ref.imap.html"
|
---|
262 | ACCESSKEY="U"
|
---|
263 | >Nahoru</A
|
---|
264 | ></TD
|
---|
265 | ><TD
|
---|
266 | WIDTH="33%"
|
---|
267 | ALIGN="right"
|
---|
268 | VALIGN="top"
|
---|
269 | >imap_headers</TD
|
---|
270 | ></TR
|
---|
271 | ></TABLE
|
---|
272 | ></DIV
|
---|
273 | ></BODY
|
---|
274 | ></HTML
|
---|
275 | >
|
---|