Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that dot stuffing is done after encoding #22

Conversation

vortrixs
Copy link
Contributor

@vortrixs vortrixs commented Oct 2, 2024

No description provided.

…e encoding. Changed `Writer::writeFiltered` to use `stream_filter_prepend`.
Copy link
Contributor

@rhl-jfm rhl-jfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I assume that the test fails without the code change (it is a proper regression test).

@vortrixs
Copy link
Contributor Author

vortrixs commented Oct 3, 2024

Looks good!

I assume that the test fails without the code change (it is a proper regression test).

Yes, the test fails without the change. It does feel weird having tests without assertions but I just mirrored the other test in the file 😅

@rhl-jfm
Copy link
Contributor

rhl-jfm commented Oct 3, 2024

You could maybe add a comment to that effect. Something like:

    $service->send($message); // Throws if we fail to speak valid SMTP

);

$message = new Message(
new Address("blip@test.org", "Rasmus åh Schultz"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I was about so say something about being personal, but I see this is copy/pasted from mindplay's own test examples back in the day, so this is a self-mention, so all good. 😄

@vortrixs vortrixs merged commit f8cd3b5 into master Oct 3, 2024
5 checks passed
@vortrixs vortrixs changed the title Ensure that dot stuffing is done before encoding Ensure that dot stuffing is done after encoding Oct 22, 2024
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.

quoted-printable and dot-stuffing filters applied in wrong order!
3 participants