File: ref.imap.html

package info (click to toggle)
php3 3%3A3.0.18-0potato1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,736 kB
  • ctags: 11,198
  • sloc: ansic: 108,120; sh: 2,512; php: 2,024; yacc: 1,887; makefile: 1,038; perl: 537; pascal: 238; awk: 90; cpp: 28; sql: 11
file content (660 lines) | stat: -rw-r--r-- 12,286 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
<HTML
><HEAD
><TITLE
>IMAP, POP3 and NNTP functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="manual.html"><LINK
REL="UP"
TITLE="Function Reference"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="read_exif_data"
HREF="function.read-exif-data.html"><LINK
REL="NEXT"
TITLE="imap_append"
HREF="function.imap-append.html"><META
NAME="HTTP_EQUIV"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.read-exif-data.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.imap-append.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.imap"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XXIX. IMAP, POP3 and NNTP functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN16177"
></A
><P
>&#13;    To get these functions to work, you have to compile PHP with
    <TT
CLASS="option"
>--with-imap</TT
>. That requires the
    c-client library to be installed. Grab the latest version from
    <A
HREF="ftp://ftp.cac.washington.edu/imap/"
TARGET="_top"
>ftp://ftp.cac.washington.edu/imap/</A
> and compile it. Then
    copy <TT
CLASS="filename"
>c-client/c-client.a</TT
> to
    <TT
CLASS="filename"
>/usr/local/lib/libc-client.a</TT
> or some other 
    directory on your link path and copy 
    <TT
CLASS="filename"
>c-client/rfc822.h</TT
>,
    <TT
CLASS="filename"
>mail.h</TT
> and <TT
CLASS="filename"
>linkage.h</TT
> to
    <TT
CLASS="filename"
>/usr/local/include</TT
> or some other directory in
    your include path.
   </P
><P
>&#13;    Note that these functions are not limited to the
    <SPAN
CLASS="acronym"
>IMAP</SPAN
> protocol, despite their name.  The
    underlying c-client library also supports <SPAN
CLASS="acronym"
>NNTP</SPAN
>,
    <SPAN
CLASS="acronym"
>POP3</SPAN
> and local mailbox access methods. 
   </P
><P
>&#13;    This document can't go into detail on all the topics touched by
		the provided functions. Further information is provided by the
		documentation of the c-client library source
		(<TT
CLASS="filename"
>docs/internal.txt</TT
>). and the following RFC
		documents:
    <P
></P
><UL
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc821.html"
TARGET="_top"
>RFC821</A
>: Simple Mail
			 Transfer Protocol (SMTP).
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc822.html"
TARGET="_top"
>RFC822</A
>: Standard for
			 ARPA internet text messages.
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc2060.html"
TARGET="_top"
>RFC2060</A
>: Internet
			 Message Access Protocol (IMAP) Version 4rev1. 
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc1939.html"
TARGET="_top"
>RFC1939</A
>:  Post
			 Office Protocol Version 3 (POP3).
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc977.html"
TARGET="_top"
>RFC977</A
>: Network News
			 Transfer Protocol (NNTP).
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc2076.html"
TARGET="_top"
>RFC2076</A
>: Common
			 Internet Message Headers.
      </P
></LI
><LI
><P
>&#13;       <A
HREF="http://www.faqs.org/rfcs/rfc2045.html"
TARGET="_top"
>RFC2045</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2046.html"
TARGET="_top"
>RFC2046</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2047.html"
TARGET="_top"
>RFC2047</A
> , <A
HREF="http://www.faqs.org/rfcs/rfc2048.html"
TARGET="_top"
>RFC2048</A
> &#38; <A
HREF="http://www.faqs.org/rfcs/rfc2049.html"
TARGET="_top"
>RFC2049</A
>: Multipurpose
			 Internet Mail Extensions (MIME).
      </P
></LI
></UL
> 
		A detailed overview is also available in the books
		<A
HREF="http://www.oreilly.com/catalog/progintemail/noframes.html"
TARGET="_top"
>Programming Internet Email</A
>
		by David Wood and  <A
HREF="http://www.oreilly.com/catalog/mimap/noframes.html"
TARGET="_top"
>Managing
		 IMAP</A
> by Dianna Mullet &#38; Kevin Mullet.
   </P
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="function.imap-append.html"
>imap_append</A
> &#8212; 
     Append a string message to a specified mailbox
    </DT
><DT
><A
HREF="function.imap-base64.html"
>imap_base64</A
> &#8212; Decode BASE64 encoded text</DT
><DT
><A
HREF="function.imap-body.html"
>imap_body</A
> &#8212; Read the message body</DT
><DT
><A
HREF="function.imap-check.html"
>imap_check</A
> &#8212; Check current mailbox</DT
><DT
><A
HREF="function.imap-close.html"
>imap_close</A
> &#8212; Close an IMAP stream</DT
><DT
><A
HREF="function.imap-createmailbox.html"
>imap_createmailbox</A
> &#8212; Create a new mailbox</DT
><DT
><A
HREF="function.imap-delete.html"
>imap_delete</A
> &#8212; 
     Mark a messge for deletion from current mailbox
    </DT
><DT
><A
HREF="function.imap-deletemailbox.html"
>imap_deletemailbox</A
> &#8212; Delete a mailbox</DT
><DT
><A
HREF="function.imap-expunge.html"
>imap_expunge</A
> &#8212; Delete all messages marked for deletion</DT
><DT
><A
HREF="function.imap-fetchbody.html"
>imap_fetchbody</A
> &#8212; 
     Fetch a particular section of the body of the message
    </DT
><DT
><A
HREF="function.imap-fetchstructure.html"
>imap_fetchstructure</A
> &#8212; 
     Read the structure of a particular message
    </DT
><DT
><A
HREF="function.imap-headerinfo.html"
>imap_headerinfo</A
> &#8212; Read the header of the message</DT
><DT
><A
HREF="function.imap-header.html"
>imap_header</A
> &#8212; Read the header of the message</DT
><DT
><A
HREF="function.imap-rfc822-parse-headers.html"
>imap_rfc822_parse_headers</A
> &#8212; Parse mail headers from a string</DT
><DT
><A
HREF="function.imap-headers.html"
>imap_headers</A
> &#8212; 
     Returns headers for all messages in a mailbox
    </DT
><DT
><A
HREF="function.imap-listmailbox.html"
>imap_listmailbox</A
> &#8212; Read the list of mailboxes</DT
><DT
><A
HREF="function.imap-getmailboxes.html"
>imap_getmailboxes</A
> &#8212; 
     Read the list of mailboxes, returning detailed information on
     each one
    </DT
><DT
><A
HREF="function.imap-listsubscribed.html"
>imap_listsubscribed</A
> &#8212; List all the subscribed mailboxes</DT
><DT
><A
HREF="function.imap-getsubscribed.html"
>imap_getsubscribed</A
> &#8212; List all the subscribed mailboxes</DT
><DT
><A
HREF="function.imap-mail-copy.html"
>imap_mail_copy</A
> &#8212; Copy specified messages to a mailbox</DT
><DT
><A
HREF="function.imap-mail-move.html"
>imap_mail_move</A
> &#8212; Move specified messages to a mailbox</DT
><DT
><A
HREF="function.imap-num-msg.html"
>imap_num_msg</A
> &#8212; 
     Gives the number of messages in the current mailbox
    </DT
><DT
><A
HREF="function.imap-num-recent.html"
>imap_num_recent</A
> &#8212; Gives the number of recent messages in current
    mailbox</DT
><DT
><A
HREF="function.imap-open.html"
>imap_open</A
> &#8212; Open an IMAP stream to a mailbox</DT
><DT
><A
HREF="function.imap-ping.html"
>imap_ping</A
> &#8212; Check if the IMAP stream is still active</DT
><DT
><A
HREF="function.imap-renamemailbox.html"
>imap_renamemailbox</A
> &#8212; Rename an old mailbox to new mailbox</DT
><DT
><A
HREF="function.imap-reopen.html"
>imap_reopen</A
> &#8212; Reopen IMAP stream to new mailbox</DT
><DT
><A
HREF="function.imap-subscribe.html"
>imap_subscribe</A
> &#8212; Subscribe to a mailbox</DT
><DT
><A
HREF="function.imap-undelete.html"
>imap_undelete</A
> &#8212; 
     Unmark the message which is marked deleted
    </DT
><DT
><A
HREF="function.imap-unsubscribe.html"
>imap_unsubscribe</A
> &#8212; Unsubscribe from a mailbox</DT
><DT
><A
HREF="function.imap-qprint.html"
>imap_qprint</A
> &#8212; Convert a quoted-printable string to an 8 bit
    string</DT
><DT
><A
HREF="function.imap-8bit.html"
>imap_8bit</A
> &#8212; 
     Convert an 8bit string to a quoted-printable string
    </DT
><DT
><A
HREF="function.imap-binary.html"
>imap_binary</A
> &#8212; 
     Convert an 8bit string to a base64 string
    </DT
><DT
><A
HREF="function.imap-scanmailbox.html"
>imap_scanmailbox</A
> &#8212; 
     Read the list of mailboxes, takes a string to search for in the
     text of the mailbox
    </DT
><DT
><A
HREF="function.imap-mailboxmsginfo.html"
>imap_mailboxmsginfo</A
> &#8212; Get information about the current mailbox</DT
><DT
><A
HREF="function.imap-rfc822-write-address.html"
>imap_rfc822_write_address</A
> &#8212; 
     Returns a properly formatted email address given the mailbox,
     host, and personal info.
    </DT
><DT
><A
HREF="function.imap-rfc822-parse-adrlist.html"
>imap_rfc822_parse_adrlist</A
> &#8212; Parses an address string</DT
><DT
><A
HREF="function.imap-setflag-full.html"
>imap_setflag_full</A
> &#8212; Sets flags on messages</DT
><DT
><A
HREF="function.imap-clearflag-full.html"
>imap_clearflag_full</A
> &#8212; Clears flags on messages</DT
><DT
><A
HREF="function.imap-sort.html"
>imap_sort</A
> &#8212; Sort an array of message headers</DT
><DT
><A
HREF="function.imap-fetchheader.html"
>imap_fetchheader</A
> &#8212; Returns header for a message</DT
><DT
><A
HREF="function.imap-uid.html"
>imap_uid</A
> &#8212; 
     This function returns the UID for the given message sequence
     number
    </DT
><DT
><A
HREF="function.imap-msgno.html"
>imap_msgno</A
> &#8212; 
     This function returns the message sequence number for the given
     UID
    </DT
><DT
><A
HREF="function.imap-search.html"
>imap_search</A
> &#8212; 
     This function returns an array of messages matching the given
     search criteria
    </DT
><DT
><A
HREF="function.imap-last-error.html"
>imap_last_error</A
> &#8212; 
     This function returns the last IMAP error (if any) that occurred
     during this page request
    </DT
><DT
><A
HREF="function.imap-errors.html"
>imap_errors</A
> &#8212; 
     This function returns all of the IMAP errors (if any) that have
     occurred during this page request or since the error stack was
     reset.
    </DT
><DT
><A
HREF="function.imap-alerts.html"
>imap_alerts</A
> &#8212; 
     This function returns all IMAP alert messages (if any) that have
     occurred during this page request or since the alert stack was
     reset
    </DT
><DT
><A
HREF="function.imap-status.html"
>imap_status</A
> &#8212; 
     This function returns status information on a mailbox other than
     the current one
    </DT
><DT
><A
HREF="function.imap-utf7-decode.html"
>imap_utf7_decode</A
> &#8212; 
     Decodes a modified UTF-7 encoded string.
    </DT
><DT
><A
HREF="function.imap-utf7-encode.html"
>imap_utf7_encode</A
> &#8212; 
     Converts 8bit data to modified UTF-7 text.
    </DT
><DT
><A
HREF="function.imap-utf8.html"
>imap_utf8</A
> &#8212; 
      Converts text to UTF8
    </DT
><DT
><A
HREF="function.imap-fetch-overview.html"
>imap_fetch_overview</A
> &#8212; 
     Read an overview of the information in the headers of the given message
    </DT
><DT
><A
HREF="function.imap-mime-header-decode.html"
>imap_mime_header_decode</A
> &#8212; Decode MIME header elements</DT
><DT
><A
HREF="function.imap-mail-compose.html"
>imap_mail_compose</A
> &#8212; 
     Create a MIME message based on given envelope and body sections 
    </DT
><DT
><A
HREF="function.imap-mail.html"
>imap_mail</A
> &#8212; 
     Send an email message
    </DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.read-exif-data.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.imap-append.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>read_exif_data</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>imap_append</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>