[GH-ISSUE #535] Angle brackets for text/plain URL with spaces #345

Closed
opened 2026-03-15 14:00:09 +03:00 by kerem · 2 comments
Owner

Originally created by @SirLouen on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/535

According to RFC2396 Appendix E angle brackets are recommended for text/plain emails to recognize potential spaces in between the URL

In the case of mailpit, spaces are not being recognized and the presence of angle brackets are pretty much ignored

Return-Path: <test@example.com>
Received: from localhost (myserver.test. [172.18.0.3])
        by e151f05e0639 (Mailpit) with SMTP
        for <test@example.com>; Mon, 14 Jul 2025 09:46:09 +0000 (UTC)
Date: Mon, 14 Jul 2025 09:46:09 +0000
To: test@example.com
From: test <test@example.com>
Subject: Subject B
Message-ID: <WIq0SNytCs9xMFSvuTvuF4NJ9HJSp1kZ8Rnpf7A26E@localhost>
X-Mailer: PHPMailer 6.9.3 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8

<https://www.example.com/path/to/resource?param1=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO PQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789>
Originally created by @SirLouen on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/axllent/mailpit/issues/535 According to [RFC2396 Appendix E](https://www.rfc-editor.org/rfc/rfc2396#appendix-E) angle brackets are recommended for `text/plain` emails to recognize potential spaces in between the URL In the case of mailpit, spaces are not being recognized and the presence of angle brackets are pretty much ignored ![](https://i.imgur.com/4sBVtUy.png) ``` Return-Path: <test@example.com> Received: from localhost (myserver.test. [172.18.0.3]) by e151f05e0639 (Mailpit) with SMTP for <test@example.com>; Mon, 14 Jul 2025 09:46:09 +0000 (UTC) Date: Mon, 14 Jul 2025 09:46:09 +0000 To: test@example.com From: test <test@example.com> Subject: Subject B Message-ID: <WIq0SNytCs9xMFSvuTvuF4NJ9HJSp1kZ8Rnpf7A26E@localhost> X-Mailer: PHPMailer 6.9.3 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 <https://www.example.com/path/to/resource?param1=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO PQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789> ```
kerem 2026-03-15 14:00:09 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@axllent commented on GitHub (Jul 15, 2025):

Thank you - I wasn't aware of this and will look into a UI fix.

<!-- gh-comment-id:3071955772 --> @axllent commented on GitHub (Jul 15, 2025): Thank you - I wasn't aware of this and will look into a UI fix.
Author
Owner

@axllent commented on GitHub (Jul 27, 2025):

A fix for this has been released as part of v1.27.2. Thank you for reporting the issue.

<!-- gh-comment-id:3123673815 --> @axllent commented on GitHub (Jul 27, 2025): A fix for this has been released as part of [v1.27.2](https://github.com/axllent/mailpit/releases/tag/v1.27.2). Thank you for reporting the issue.
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#345
No description provided.