Skip to content

Commit cba529e

Browse files
committed
ImapDriver: do not parse contacts into objects (at all) TODO: Write proper bullet proof adrlist parser; PHP one is not realible at all
1 parent d51f456 commit cba529e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MailLibrary/Drivers/ImapDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function getHeaders($mailId)
265265
}
266266

267267
$headers[$key] = trim($text);
268-
} else if(in_array(strtolower($key), self::$contactHeaders)) {
268+
} /*else if(in_array(strtolower($key), self::$contactHeaders)) {
269269
$contacts = imap_rfc822_parse_adrlist(imap_utf8(trim($header)), 'UNKNOWN_HOST');
270270
$list = new ContactList();
271271
foreach($contacts as $contact) {
@@ -278,7 +278,7 @@ public function getHeaders($mailId)
278278
}
279279
$list->build();
280280
$headers[$key] = $list;
281-
} else {
281+
}*/ else {
282282
$headers[$key] = trim(imap_utf8($header));
283283
}
284284
}

0 commit comments

Comments
 (0)