1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-15 20:13:16 +02:00

Add SMTP From address when ignored parameters are received

This commit is contained in:
Ralph Slooten
2024-12-13 20:05:30 +13:00
parent 4ad6a4553c
commit 0af5d184f5

View File

@@ -416,6 +416,8 @@ loop:
sizeMatch := mailFromSizeRE.FindStringSubmatch(match[3])
if sizeMatch == nil {
// ignore other parameter
from = match[1]
gotFrom = true
s.writef("250 2.1.0 Ok")
} else {
// Enforce the maximum message size if one is set.