Skip to content

Period at start of line not escaped #968

@chuckwagoncomputing

Description

@chuckwagoncomputing

Describe the bug

The following is what I think is going on; I don't know of a good way to tell what swoosh is sending without setting up another SMTP server without encryption. I'm going off of the final resulting email in my inbox.

Periods at the start of a line are not escaped, and they end up being deleted by the email server.
I initially tried fixing this in elixir-mail to mimic other email clients, but it's technically allowed, it just needs to be escaped by the SMTP client.

Steps to Reproduce the Bug or Issue

Send an email in which a period is just over the line length limit so it gets wrapped to the next line.

Expected behavior

The period should be replaced with two periods.

Your reproducible example

No response

Screenshots or Videos

No response

Platform

  • OTP: 27
  • Elixir: 1.17.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions