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

Subjects with newlines lack spaces #317

Open
taobojlen opened this issue Jun 3, 2022 · 0 comments
Open

Subjects with newlines lack spaces #317

taobojlen opened this issue Jun 3, 2022 · 0 comments

Comments

@taobojlen
Copy link

I use gen_smtp to receive incoming emails. I use :mimemail.decode/1 to parse them, and I've noticed an issue in emails where the subject spans multiple lines in the incoming email.

Here's an example:

From: "Sender" <sender@example.com>
To: "Recipient" <recipient@example.com>
Subject: An email with newlines
 in the subject
Content-Type: text/plain; charset="utf-8"

Plain text email goes here!

If you try to decode this, you'll get a subject of An email with newlinesin the subject in the result.

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

1 participant