Skip to content

Commit

Permalink
fixup! fix(sync): return if headers couldn't be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Oct 9, 2023
1 parent c7b5c6d commit 93f76e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IMAP/ImapMessageFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ private function parseHeaders(Horde_Imap_Client_Data_Fetch $fetch): void {
if ($listUnsubscribeHeader !== null) {
$listHeaders = new Horde_ListHeaders();
$headers = $listHeaders->parse($listUnsubscribeHeader->name, $listUnsubscribeHeader->value_single);
if(!$headers) {
if (!$headers) {
// Unable to parse headers
return;
}
Expand Down

0 comments on commit 93f76e4

Please sign in to comment.