forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_imap.stub.php
576 lines (485 loc) · 14.5 KB
/
php_imap.stub.php
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
<?php
/** @generate-class-entries */
namespace {
/**
* @var int
* @cvalue NIL
* @deprecated
*/
const NIL = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMAP_OPENTIMEOUT
*/
const IMAP_OPENTIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMAP_READTIMEOUT
*/
const IMAP_READTIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMAP_WRITETIMEOUT
*/
const IMAP_WRITETIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMAP_CLOSETIMEOUT
*/
const IMAP_CLOSETIMEOUT = UNKNOWN;
/**
* debug protocol negotiations
* @var int
* @cvalue OP_DEBUG
*/
const OP_DEBUG = UNKNOWN;
/**
* read-only open
* @var int
* @cvalue OP_READONLY
*/
const OP_READONLY = UNKNOWN;
/**
* anonymous open of newsgroup
* @var int
* @cvalue OP_ANONYMOUS
*/
const OP_ANONYMOUS = UNKNOWN;
/**
* short (elt-only) caching
* @var int
* @cvalue OP_SHORTCACHE
*/
const OP_SHORTCACHE = UNKNOWN;
/**
* don't pass up events (internal use)
* @var int
* @cvalue OP_SILENT
*/
const OP_SILENT = UNKNOWN;
/**
* return driver prototype
* @var int
* @cvalue OP_PROTOTYPE
*/
const OP_PROTOTYPE = UNKNOWN;
/**
* half-open (IMAP connect but no select)
* @var int
* @cvalue OP_HALFOPEN
*/
const OP_HALFOPEN = UNKNOWN;
/**
* silently expunge recycle stream
* @var int
* @cvalue OP_EXPUNGE
*/
const OP_EXPUNGE = UNKNOWN;
/**
* don't do non-secure authentication
* @var int
* @cvalue OP_SECURE
*/
const OP_SECURE = UNKNOWN;
/**
* @var int
* @cvalue PHP_EXPUNGE
*/
const CL_EXPUNGE = UNKNOWN;
/**
* argument is a UID
* @var int
* @cvalue FT_UID
*/
const FT_UID = UNKNOWN;
/**
* peek at data
* @var int
* @cvalue FT_PEEK
*/
const FT_PEEK = UNKNOWN;
/**
* NOT flag for header lines fetch
* @var int
* @cvalue FT_NOT
*/
const FT_NOT = UNKNOWN;
/**
* text can be internal strings
* @var int
* @cvalue FT_INTERNAL
*/
const FT_INTERNAL = UNKNOWN;
/**
* IMAP prefetch text when fetching header
* @var int
* @cvalue FT_PREFETCHTEXT
*/
const FT_PREFETCHTEXT = UNKNOWN;
/**
* argument is a UID sequence
* @var int
* @cvalue ST_UID
*/
const ST_UID = UNKNOWN;
/**
* don't return results
* @var int
* @cvalue ST_SILENT
*/
const ST_SILENT = UNKNOWN;
/**
* set vs. clear
* @var int
* @cvalue ST_SET
*/
const ST_SET = UNKNOWN;
/**
* argument is a UID sequence
* @var int
* @cvalue CP_UID
*/
const CP_UID = UNKNOWN;
/**
* delete from source after copying
* @var int
* @cvalue CP_MOVE
*/
const CP_MOVE = UNKNOWN;
/**
* return UID
* @var int
* @cvalue SE_UID
*/
const SE_UID = UNKNOWN;
/**
* free search program after finished
* @var int
* @cvalue SE_FREE
*/
const SE_FREE = UNKNOWN;
/**
* no search prefetchin
* @var int
* @cvalue SE_NOPREFETCH
*/
const SE_NOPREFETCH = UNKNOWN;
/**
* free sort program after finished
* @var int
* @cvalue SO_FREE
*/
const SO_FREE = UNKNOWN;
/**
* don't do server-based sort
* @var int
* @cvalue SO_FREE
*/
const SO_NOSERVER = UNKNOWN;
/**
* number of messages
* @var int
* @cvalue SA_MESSAGES
*/
const SA_MESSAGES = UNKNOWN;
/**
* number of recent messages
* @var int
* @cvalue SA_RECENT
*/
const SA_RECENT = UNKNOWN;
/**
* number of unseen messages
* @var int
* @cvalue SA_UNSEEN
*/
const SA_UNSEEN = UNKNOWN;
/**
* next UID to be assigned
* @var int
* @cvalue SA_UIDNEXT
*/
const SA_UIDNEXT = UNKNOWN;
/**
* UID validity value
* @var int
* @cvalue SA_UIDVALIDITY
*/
const SA_UIDVALIDITY = UNKNOWN;
/**
* get all status information
* @var int
* @cvalue SA_ALL
*/
const SA_ALL = UNKNOWN;
/**
* @var int
* @cvalue LATT_NOINFERIORS
*/
const LATT_NOINFERIORS = UNKNOWN;
/**
* @var int
* @cvalue LATT_NOSELECT
*/
const LATT_NOSELECT = UNKNOWN;
/**
* @var int
* @cvalue LATT_MARKED
*/
const LATT_MARKED = UNKNOWN;
/**
* @var int
* @cvalue LATT_UNMARKED
*/
const LATT_UNMARKED = UNKNOWN;
#ifdef LATT_REFERRAL
/**
* @var int
* @cvalue LATT_REFERRAL
*/
const LATT_REFERRAL = UNKNOWN;
#endif
#ifdef LATT_HASCHILDREN
/**
* @var int
* @cvalue LATT_HASCHILDREN
*/
const LATT_HASCHILDREN = UNKNOWN;
#endif
#ifdef LATT_HASNOCHILDREN
/**
* @var int
* @cvalue LATT_HASNOCHILDREN
*/
const LATT_HASNOCHILDREN = UNKNOWN;
#endif
/**
* date
* @var int
* @cvalue SORTDATE
*/
const SORTDATE = UNKNOWN;
/**
* arrival date
* @var int
* @cvalue SORTARRIVAL
*/
const SORTARRIVAL = UNKNOWN;
/**
* from
* @var int
* @cvalue SORTFROM
*/
const SORTFROM = UNKNOWN;
/**
* subject
* @var int
* @cvalue SORTSUBJECT
*/
const SORTSUBJECT = UNKNOWN;
/**
* to
* @var int
* @cvalue SORTTO
*/
const SORTTO = UNKNOWN;
/**
* cc
* @var int
* @cvalue SORTCC
*/
const SORTCC = UNKNOWN;
/**
* size
* @var int
* @cvalue SORTSIZE
*/
const SORTSIZE = UNKNOWN;
/**
* @var int
* @cvalue TYPETEXT
*/
const TYPETEXT = UNKNOWN;
/**
* @var int
* @cvalue TYPEMULTIPART
*/
const TYPEMULTIPART = UNKNOWN;
/**
* @var int
* @cvalue TYPEMESSAGE
*/
const TYPEMESSAGE = UNKNOWN;
/**
* @var int
* @cvalue TYPEAPPLICATION
*/
const TYPEAPPLICATION = UNKNOWN;
/**
* @var int
* @cvalue TYPEAUDIO
*/
const TYPEAUDIO = UNKNOWN;
/**
* @var int
* @cvalue TYPEIMAGE
*/
const TYPEIMAGE = UNKNOWN;
/**
* @var int
* @cvalue TYPEVIDEO
*/
const TYPEVIDEO = UNKNOWN;
/**
* @var int
* @cvalue TYPEMODEL
*/
const TYPEMODEL = UNKNOWN;
/**
* @var int
* @cvalue TYPEOTHER
*/
const TYPEOTHER = UNKNOWN;
/**
* @var int
* @cvalue ENC7BIT
*/
const ENC7BIT = UNKNOWN;
/**
* @var int
* @cvalue ENC8BIT
*/
const ENC8BIT = UNKNOWN;
/**
* @var int
* @cvalue ENCBINARY
*/
const ENCBINARY = UNKNOWN;
/**
* @var int
* @cvalue ENCBASE64
*/
const ENCBASE64 = UNKNOWN;
/**
* @var int
* @cvalue ENCQUOTEDPRINTABLE
*/
const ENCQUOTEDPRINTABLE = UNKNOWN;
/**
* @var int
* @cvalue ENCOTHER
*/
const ENCOTHER = UNKNOWN;
/**
* message cache elements
* @var int
* @cvalue GC_ELT
*/
const IMAP_GC_ELT = UNKNOWN;
/**
* ENVELOPEs and BODYs
* @var int
* @cvalue GC_ENV
*/
const IMAP_GC_ENV = UNKNOWN;
/**
* texts
* @var int
* @cvalue GC_TEXTS
*/
const IMAP_GC_TEXTS = UNKNOWN;
function imap_open(string $mailbox, string $user, #[\SensitiveParameter] string $password, int $flags = 0, int $retries = 0, array $options = []): IMAP\Connection|false {}
function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}
function imap_close(IMAP\Connection $imap, int $flags = 0): bool {}
function imap_num_msg(IMAP\Connection $imap): int|false {}
function imap_num_recent(IMAP\Connection $imap): int {}
function imap_headers(IMAP\Connection $imap): array|false {}
function imap_headerinfo(IMAP\Connection $imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass|false {}
function imap_rfc822_parse_headers(string $headers, string $default_hostname = "UNKNOWN"): \stdClass {}
function imap_rfc822_write_address(string $mailbox, string $hostname, string $personal): string|false {}
function imap_rfc822_parse_adrlist(string $string, string $default_hostname): array {}
function imap_body(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
/** @alias imap_body */
function imap_fetchtext(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
function imap_bodystruct(IMAP\Connection $imap, int $message_num, string $section): \stdClass|false {}
function imap_fetchbody(IMAP\Connection $imap, int $message_num, string $section, int $flags = 0): string|false {}
function imap_fetchmime(IMAP\Connection $imap, int $message_num, string $section, int $flags = 0): string|false {}
/** @param resource|string|int $file */
function imap_savebody(IMAP\Connection $imap, $file, int $message_num, string $section = "", int $flags = 0): bool {}
function imap_fetchheader(IMAP\Connection $imap, int $message_num, int $flags = 0): string|false {}
function imap_fetchstructure(IMAP\Connection $imap, int $message_num, int $flags = 0): \stdClass|false {}
function imap_gc(IMAP\Connection $imap, int $flags): bool {}
function imap_expunge(IMAP\Connection $imap): bool {}
function imap_delete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
function imap_undelete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
function imap_check(IMAP\Connection $imap): \stdClass|false {}
function imap_listscan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
/** @alias imap_listscan */
function imap_scan(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
/** @alias imap_listscan */
function imap_scanmailbox(IMAP\Connection $imap, string $reference, string $pattern, string $content): array|false {}
function imap_mail_copy(IMAP\Connection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
function imap_mail_move(IMAP\Connection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
function imap_mail_compose(array $envelope, array $bodies): string|false {}
function imap_createmailbox(IMAP\Connection $imap, string $mailbox): bool {}
/** @alias imap_createmailbox */
function imap_create(IMAP\Connection $imap, string $mailbox): bool {}
function imap_renamemailbox(IMAP\Connection $imap, string $from, string $to): bool {}
/** @alias imap_renamemailbox */
function imap_rename(IMAP\Connection $imap, string $from, string $to): bool {}
function imap_deletemailbox(IMAP\Connection $imap, string $mailbox): bool {}
function imap_subscribe(IMAP\Connection $imap, string $mailbox): bool {}
function imap_unsubscribe(IMAP\Connection $imap, string $mailbox): bool {}
function imap_append(IMAP\Connection $imap, string $folder, string $message, ?string $options = null, ?string $internal_date = null): bool {}
function imap_ping(IMAP\Connection $imap): bool {}
function imap_base64(string $string): string|false {}
function imap_qprint(string $string): string|false {}
function imap_8bit(string $string): string|false {}
function imap_binary(string $string): string|false {}
function imap_utf8(string $mime_encoded_text): string {}
function imap_status(IMAP\Connection $imap, string $mailbox, int $flags): \stdClass|false {}
function imap_mailboxmsginfo(IMAP\Connection $imap): \stdClass {}
function imap_setflag_full(IMAP\Connection $imap, string $sequence, string $flag, int $options = 0): bool {}
function imap_clearflag_full(IMAP\Connection $imap, string $sequence, string $flag, int $options = 0): bool {}
function imap_sort(IMAP\Connection $imap, int $criteria, bool $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array|false {}
function imap_uid(IMAP\Connection $imap, int $message_num): int|false {}
function imap_msgno(IMAP\Connection $imap, int $message_uid): int {}
function imap_list(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
/** @alias imap_list */
function imap_listmailbox(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
function imap_lsub(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
/** @alias imap_lsub */
function imap_listsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
function imap_getsubscribed(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
function imap_getmailboxes(IMAP\Connection $imap, string $reference, string $pattern): array|false {}
function imap_fetch_overview(IMAP\Connection $imap, string $sequence, int $flags = 0): array|false {}
function imap_alerts(): array|false {}
function imap_errors(): array|false {}
function imap_last_error(): string|false {}
function imap_search(IMAP\Connection $imap, string $criteria, int $flags = SE_FREE, string $charset = ""): array|false {}
function imap_utf7_decode(string $string): string|false {}
function imap_utf7_encode(string $string): string {}
#ifdef HAVE_IMAP_MUTF7
function imap_utf8_to_mutf7(string $string): string|false {}
function imap_mutf7_to_utf8(string $string): string|false {}
#endif
function imap_mime_header_decode(string $string): array|false {}
function imap_thread(IMAP\Connection $imap, int $flags = SE_FREE): array|false {}
function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {}
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
function imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false {}
function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {}
function imap_set_quota(IMAP\Connection $imap, string $quota_root, int $mailbox_size): bool {}
function imap_setacl(IMAP\Connection $imap, string $mailbox, string $user_id, string $rights): bool {}
function imap_getacl(IMAP\Connection $imap, string $mailbox): array|false {}
#endif
function imap_mail(string $to, string $subject, string $message, ?string $additional_headers = null, ?string $cc = null, ?string $bcc = null, ?string $return_path = null): bool {}
}
namespace IMAP {
/**
* @strict-properties
* @not-serializable
*/
final class Connection {
}
}