We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ff5ca commit f56a7f8Copy full SHA for f56a7f8
Jyxo/Mail/Parser.php
@@ -210,6 +210,10 @@ public function getHeaders(?string $pid = null): array
210
$headerInfo = imap_rfc822_parse_headers($rawHeaders);
211
}
212
213
+ if ($headerInfo === false) {
214
+ return [];
215
+ }
216
+
217
// Adds a header that the IMAP extension does not support
218
if (preg_match("~Disposition-Notification-To:(.+?)(?=\r?\n(?:\\S|\r?\n))~is", $rawHeaders, $matches)) {
219
$addressList = imap_rfc822_parse_adrlist($matches[1], '');
0 commit comments