Skip to content

Extend unit tests and fix decoding bug - #742

Merged
Sebbo94BY merged 1 commit into
6.xfrom
Extend-Unit-Tests
May 10, 2026
Merged

Extend unit tests and fix decoding bug#742
Sebbo94BY merged 1 commit into
6.xfrom
Extend-Unit-Tests

Conversation

@Sebbo94BY

Copy link
Copy Markdown
Collaborator

Increased coverage around the encoding/conversion paths and fixed one real decoding bug. src/PhpImap/Mailbox.php:1965 now always strips RFC2231 charset'lang' metadata and decodes the value, even when the filename is plain ASCII instead of percent-encoded. I added focused tests in tests/unit/MailboxEncodingTest.php:11 for convertToUtf8, isUrlEncoded, and RFC2231 decoding, exposed the protected helper through tests/unit/Fixtures/Mailbox.php:11, and extended tests/unit/ LiveMailboxStringDecodingConvertingTest.php:22 with windows-1251 and cp1252 quoted-printable cases.

@Sebbo94BY
Sebbo94BY merged commit 31cfdf0 into 6.x May 10, 2026
0 of 9 checks passed
@Sebbo94BY
Sebbo94BY deleted the Extend-Unit-Tests branch May 10, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant