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

Address header not folded with large number of recipients #2690

Open
Centridox opened this issue Jun 2, 2022 · 3 comments
Open

Address header not folded with large number of recipients #2690

Centridox opened this issue Jun 2, 2022 · 3 comments

Comments

@Centridox
Copy link

Hi,

when adding multiple addresses on a To, CC or BCC, it seems that the result is not folded. All separate adresses are checked against the maximum length, but not the resulting output. This leads to an incorrect header being sent.

In the function addrAppend, there is just an implode, should the result of the implode (along with the other values) als be handled by the encodeHeader function?

Please advise

image

@Synchro
Copy link
Member

Synchro commented Jun 2, 2022

Yes, you're right; It should be passed through encodeHeader too.

@Centridox
Copy link
Author

The function encodeHeader also add encoding, how can i avoid that, and just trigger the linefolding?

@Synchro
Copy link
Member

Synchro commented Jun 2, 2022

Some lines can't be folded safely without encoding, but it should only do that if it's necessary.

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

No branches or pull requests

2 participants