|
136 | 136 | | error: "Kerberos error: No credentials cache
|
137 | 137 | | file found (try running kinit) (...)"
|
138 | 138 | | or ['GSSAPI','PLAIN'] if you are using outlook mail
|
139 |
| - | -Decoder options (currently only the message subject and attachment name decoder can be set) |
140 |
| - | 'utf-8' - Uses imap_utf8($string) to decode a string |
141 |
| - | 'mimeheader' - Uses mb_decode_mimeheader($string) to decode a string |
142 | 139 | |
|
143 | 140 | */
|
144 | 141 | 'options' => [
|
|
163 | 160 | "sent" => "INBOX/Sent",
|
164 | 161 | "trash" => "INBOX/Trash",
|
165 | 162 | ],
|
166 |
| - 'decoder' => [ |
| 163 | + 'open' => [ |
| 164 | + // 'DISABLE_AUTHENTICATOR' => 'GSSAPI' |
| 165 | + ] |
| 166 | + ], |
| 167 | + |
| 168 | + /** |
| 169 | + * |-------------------------------------------------------------------------- |
| 170 | + * | Available decoding options |
| 171 | + * |-------------------------------------------------------------------------- |
| 172 | + * | |
| 173 | + * | Available php imap config parameters are listed below |
| 174 | + * | -options: Decoder options (currently only the message subject and attachment name decoder can be set) |
| 175 | + * | 'utf-8' - Uses imap_utf8($string) to decode a string |
| 176 | + * | 'mimeheader' - Uses mb_decode_mimeheader($string) to decode a string |
| 177 | + * | -decoder: Decoder to be used. Can be replaced by custom decoders if needed. |
| 178 | + * | 'header' - HeaderDecoder |
| 179 | + * | 'message' - MessageDecoder |
| 180 | + * | 'attachment' - AttachmentDecoder |
| 181 | + */ |
| 182 | + 'decoding' => [ |
| 183 | + 'options' => [ |
| 184 | + 'header' => 'utf-8', // mimeheader |
167 | 185 | 'message' => 'utf-8', // mimeheader
|
168 | 186 | 'attachment' => 'utf-8' // mimeheader
|
169 | 187 | ],
|
170 |
| - 'open' => [ |
171 |
| - // 'DISABLE_AUTHENTICATOR' => 'GSSAPI' |
| 188 | + 'decoder' => [ |
| 189 | + 'header' => \Webklex\PHPIMAP\Decoder\HeaderDecoder::class, |
| 190 | + 'message' => \Webklex\PHPIMAP\Decoder\MessageDecoder::class, |
| 191 | + 'attachment' => \Webklex\PHPIMAP\Decoder\AttachmentDecoder::class |
172 | 192 | ]
|
173 | 193 | ],
|
174 | 194 |
|
|
0 commit comments