summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.stub.php
blob: 5a1349d0f4ecc6b99df0b231c04ea01ae73479de (plain)
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
<?php

/** @generate-class-entries */

/** @strict-properties */
final class IMAPConnection {
}

function imap_open(string $mailbox, string $user, string $password, int $flags = 0, int $retries = 0, array $options = []): IMAPConnection|false {}

function imap_reopen(IMAPConnection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}

function imap_close(IMAPConnection $imap, int $flags = 0): bool {}

function imap_num_msg(IMAPConnection $imap): int|false {}

function imap_num_recent(IMAPConnection $imap): int {}

function imap_headers(IMAPConnection $imap): array|false {}

function imap_headerinfo(IMAPConnection $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(IMAPConnection $imap, int $message_num, int $flags = 0): string|false {}

/**
 * @alias imap_body
 */
function imap_fetchtext(IMAPConnection $imap, int $message_num, int $flags = 0): string|false {}

function imap_bodystruct(IMAPConnection $imap, int $message_num, string $section): stdClass|false {}

function imap_fetchbody(IMAPConnection $imap, int $message_num, string $section, int $flags = 0): string|false {}

function imap_fetchmime(IMAPConnection $imap, int $message_num, string $section, int $flags = 0): string|false {}

/**
 * @param resource|string|int $file
 */
function imap_savebody(IMAPConnection $imap, $file, int $message_num, string $section = "", int $flags = 0): bool {}

function imap_fetchheader(IMAPConnection $imap, int $message_num, int $flags = 0): string|false {}

function imap_fetchstructure(IMAPConnection $imap, int $message_num, int $flags = 0): stdClass|false {}

/**
 */
function imap_gc(IMAPConnection $imap, int $flags): bool {}

/**
 */
function imap_expunge(IMAPConnection $imap): bool {}

/**
 */
function imap_delete(IMAPConnection $imap, string $message_num, int $flags = 0): bool {}

/**
 */
function imap_undelete(IMAPConnection $imap, string $message_num, int $flags = 0): bool {}

function imap_check(IMAPConnection $imap): stdClass|false {}

function imap_listscan(IMAPConnection $imap, string $reference, string $pattern, string $content): array|false {}

/**
 * @alias imap_listscan
 */
function imap_scan(IMAPConnection $imap, string $reference, string $pattern, string $content): array|false {}

/**
 * @alias imap_listscan
 */
function imap_scanmailbox(IMAPConnection $imap, string $reference, string $pattern, string $content): array|false {}

function imap_mail_copy(IMAPConnection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}

function imap_mail_move(IMAPConnection $imap, string $message_nums, string $mailbox, int $flags = 0): bool {}

function imap_mail_compose(array $envelope, array $bodies): string|false {}

function imap_createmailbox(IMAPConnection $imap, string $mailbox): bool {}

/**
 * @alias imap_createmailbox
 */
function imap_create(IMAPConnection $imap, string $mailbox): bool {}

function imap_renamemailbox(IMAPConnection $imap, string $from, string $to): bool {}

/**
 * @alias imap_renamemailbox
 */
function imap_rename(IMAPConnection $imap, string $from, string $to): bool {}

function imap_deletemailbox(IMAPConnection $imap, string $mailbox): bool {}

function imap_subscribe(IMAPConnection $imap, string $mailbox): bool {}

function imap_unsubscribe(IMAPConnection $imap, string $mailbox): bool {}

function imap_append(IMAPConnection $imap, string $folder, string $message, ?string $options = null, ?string $internal_date = null): bool {}

function imap_ping(IMAPConnection $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(IMAPConnection $imap, string $mailbox, int $flags): stdClass|false {}

function imap_mailboxmsginfo(IMAPConnection $imap): stdClass {}

function imap_setflag_full(IMAPConnection $imap, string $sequence, string $flag, int $options = 0): bool {}

function imap_clearflag_full(IMAPConnection $imap, string $sequence, string $flag, int $options = 0): bool {}

function imap_sort(IMAPConnection $imap, int $criteria, bool $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array|false {}

function imap_uid(IMAPConnection $imap, int $message_num): int|false {}

function imap_msgno(IMAPConnection $imap, int $message_uid): int {}

function imap_list(IMAPConnection $imap, string $reference, string $pattern): array|false {}

/**
 * @alias imap_list
 */
function imap_listmailbox(IMAPConnection $imap, string $reference, string $pattern): array|false {}

function imap_lsub(IMAPConnection $imap, string $reference, string $pattern): array|false {}

/**
 * @alias imap_lsub
 */
function imap_listsubscribed(IMAPConnection $imap, string $reference, string $pattern): array|false {}

function imap_getsubscribed(IMAPConnection $imap, string $reference, string $pattern): array|false {}

function imap_getmailboxes(IMAPConnection $imap, string $reference, string $pattern): array|false {}

function imap_fetch_overview(IMAPConnection $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(IMAPConnection $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(IMAPConnection $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(IMAPConnection $imap, string $quota_root): array|false {}

function imap_get_quotaroot(IMAPConnection $imap, string $mailbox): array|false {}

function imap_set_quota(IMAPConnection $imap, string $quota_root, int $mailbox_size): bool {}

function imap_setacl(IMAPConnection $imap, string $mailbox, string $user_id, string $rights): bool {}

function imap_getacl(IMAPConnection $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 {}