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

Less strict mail parsing #212

Open
lllama opened this issue Sep 12, 2024 · 2 comments
Open

Less strict mail parsing #212

lllama opened this issue Sep 12, 2024 · 2 comments

Comments

@lllama
Copy link

lllama commented Sep 12, 2024

I'm using mox/message to parse emails from postfix. Unfortunately, it looks like the mails are being sent with \n rather than \r\n, and so I'm getting BARE NEWLINE parsing errors. Is there any way to accept just \n?

@mjl-
Copy link
Owner

mjl- commented Sep 15, 2024

Are these existing messages that you've imported? Or are these coming in over SMTP (from a postfix instance)?

And are you getting the parsing errors when reading messages over IMAP? Or during smtp delivers and/or imports?

@lllama
Copy link
Author

lllama commented Sep 15, 2024

These were messages coming from postfix that I was passing to mox parsing via the pipe transport. I’d assumed that postfix would be using CRLF but it turns out that it defaults to \n. 😑

So the error was when reading the email from stdin (which is how the pipe transport works) but it turns out I just needed to find the correct setting.

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