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

Updated line split logic, normalize all linebreaks to \r\n #897

Merged

Conversation

vishnus
Copy link
Contributor

@vishnus vishnus commented Oct 24, 2019

Hi team,

Some emails were being rejected with error 530 From/Sender name is not valid but it was working with different smtp servers (google, mailgun etc) and when we looked further, we could see that the @headers variable was not getting "from" field at all even through its there in the email payload. Further investigating we figured out that the message payload has inconsistent \r\n and \n and Postal was not able to parse it correctly. We could fix it by normalizing it to convert all \n and \r\n to just use \r\n on every linebreak. Please check this pull request which fixed this issue.

Thanks

@vishnus
Copy link
Contributor Author

vishnus commented Nov 1, 2019

@willpower232 i see many issues posted saying they are facing the issue "530 From/Sender name is not valid". We also were stuck there, maybe this will fix them too..

@adamcooke adamcooke assigned catphish and unassigned catphish Nov 22, 2019
@adamcooke adamcooke merged commit e8ba9ee into postalserver:master Jul 27, 2021
@Wouter0100
Copy link
Contributor

It seems this issue introduced a new error. See #1624. I proposed a fix for this in #2154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants