[GH-ISSUE #135] Suggest:Support for CR Line Break Code in Text Emails #93

Closed
opened 2026-03-15 12:30:32 +03:00 by kerem · 3 comments
Owner

Originally created by @SuzuTakahiro on GitHub (Jun 28, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/135

In actual email clients like Outlook, there are cases where the carriage return (CR) is supported as a line break code for text emails.

Do you have any plans to support the CR line break code in text emails in Mailpit?

Originally created by @SuzuTakahiro on GitHub (Jun 28, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/135 In actual email clients like Outlook, there are cases where the carriage return (CR) is supported as a line break code for text emails. Do you have any plans to support the CR line break code in text emails in Mailpit?
kerem closed this issue 2026-03-15 12:30:38 +03:00
Author
Owner

@axllent commented on GitHub (Jun 29, 2023):

Hi @SuzuTakahiro. Are these emails (with just a CR line break) being generated by Outlook, or just being read in Outlook?

If I understand you correctly, the issue you are experiencing is that the Text format in the webmail UI shows all your content on one line?

Emails must follow the very clear standard set in RFC 5322 which states:

Messages are divided into lines of characters. A line is a series of characters that is delimited with the two characters carriage-return and line-feed; that is, the carriage return (CR) character (ASCII value 13) followed immediately by the line feed (LF) character (ASCII value 10).

Mailpit is a tool used for testing both email delivery and the email content/structure itself. I do not think it's a good idea to create work-arounds to support CR line break code when emails clearly should also include a LF. It woulds to me like Mailpit is doing exactly what it should - showing you there is a problem with your email and/or delivery agent.

Can you please tell me what is generating these emails, and how they are being delivered to Mailpit?

<!-- gh-comment-id:1612407183 --> @axllent commented on GitHub (Jun 29, 2023): Hi @SuzuTakahiro. Are these emails (with just a CR line break) being generated by Outlook, or just being read in Outlook? If I understand you correctly, the issue you are experiencing is that the Text format in the webmail UI shows all your content on one line? Emails must follow the very clear standard set in [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-2.1) which states: > Messages are divided into lines of characters. A line is a series of characters that is delimited with the two characters carriage-return and line-feed; that is, the carriage return (CR) character (ASCII value 13) followed immediately by the line feed (LF) character (ASCII value 10). Mailpit is a tool used for testing both email delivery and the email content/structure itself. I do not think it's a good idea to create work-arounds to support CR line break code when emails clearly should also include a LF. It woulds to me like Mailpit is doing exactly what it should - showing you there is a problem with your email and/or delivery agent. Can you please tell me what is generating these emails, and how they are being delivered to Mailpit?
Author
Owner

@SuzuTakahiro commented on GitHub (Jun 29, 2023):

Thank you for the detailed explanation.

I mistakenly assumed that line breaks with carriage returns (CR) were the standard because they were used in applications like Outlook.
I understand and acknowledge that what you're saying is correct.
That was very educational for me.

I was sending the emails created through a program to Mailpit,Outlook, and other platforms for verification.

I was very nervous about my first issue, but thank you for explaining it to me in detail.

<!-- gh-comment-id:1612432829 --> @SuzuTakahiro commented on GitHub (Jun 29, 2023): Thank you for the detailed explanation. I mistakenly assumed that line breaks with carriage returns (CR) were the standard because they were used in applications like Outlook. I understand and acknowledge that what you're saying is correct. That was very educational for me. I was sending the emails created through a program to Mailpit,Outlook, and other platforms for verification. I was very nervous about my first issue, but thank you for explaining it to me in detail.
Author
Owner

@axllent commented on GitHub (Jun 29, 2023):

Don't be nervous! Feedback is always good 👍

<!-- gh-comment-id:1612475086 --> @axllent commented on GitHub (Jun 29, 2023): Don't be nervous! Feedback is always good 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#93
No description provided.