mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[PR #406] [CLOSED] Update lib.go: Changing mailFromRE regex #549
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#549
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/axllent/mailpit/pull/406
Author: @ThomasLandauer
Created: 12/12/2024
Status: ❌ Closed
Base:
develop← Head:patch-2📝 Commits (2)
3115e57Update lib.go: ChangingmailFromREregexa52ff39Update lib.go📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
server/smtpd/lib.go(+1 -1)📄 Description
First change: Strictly speaking, there's no whitespace allowed: https://datatracker.ietf.org/doc/html/rfc5321#section-3.3
But I agree that it's OK to allow it, but I'd restrict it to horizontal whitespace.
Second change: The pattern is still too liberal, since not all characters are allowed in an email address. But what's really important is that you can't accept an
>or vertical whitespace here.Third change: certainly no vertical whitespace allowed here.
If you agree, I'd do the same for the other regex'es
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.