mirror of
https://github.com/karatektus/pl_mail.git
synced 2026-10-25 10:04:18 +00:00
webklex's header parser hands a repeated Date (or References) to string functions as an array or as one date with trailing data; the TypeError or Carbon exception escaped the library's per-message catch and failed the whole page of the sync or import, every time. ImapQuery now reads such a message again with the repeated once-only headers collapsed, keeping the raw header the server sent, so it is imported. A header the repair cannot mend is recorded against its UID and retried, then skipped, on its own. Proton Mail Bridge answered the sync's UID SEARCH n:* with "NO no such message". The range searches read that as an empty result; the importer's search for a page of known UIDs does not. Closes #219 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>