Skip to content

Header detection & MIME content aware Reader for the DATA command #130

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

Closed
flashmob opened this issue Jan 6, 2019 · 3 comments
Closed

Header detection & MIME content aware Reader for the DATA command #130

flashmob opened this issue Jan 6, 2019 · 3 comments

Comments

@flashmob
Copy link
Owner

flashmob commented Jan 6, 2019

We can scan for the header boundary as we receive the emails in the DATA command state, saving the position of the header boundary for later processing, and/or parse as we go along. At present, the data is re-scanned at the end of the transaction.

Additionally, once we have the header, we could could have a MIME aware reader, that can read in chunks and is aware about content boundaries, getting us closer to addressing issue #84

@iwex
Copy link

iwex commented Mar 7, 2019

Hi, I have some problem with headers. Should I start new Issue?

DEBU[0001] Client sent: DATA
DEBU[0001] Writing response to client: 54 Enter message, ending with '.' on a line by itself
ERRO[0001] parse headers error error=EOF

I tested it with swaks -f [email protected] -t [email protected] --server 127.0.0.1:2525

@flashmob
Copy link
Owner Author

flashmob commented Mar 8, 2019 via email

@flashmob
Copy link
Owner Author

flashmob commented Apr 3, 2019

Fixed in #142

@flashmob flashmob closed this as completed Apr 3, 2019
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