1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 11:07:01 +00:00

Increase max local-part length to 128

- Improves compatibility with Mailgun
- Closes #41
- Update CHANGELOG
This commit is contained in:
James Hillyerd
2016-12-31 04:57:13 +00:00
parent c1e7de5e14
commit dcc0f36f48
3 changed files with 13 additions and 5 deletions

View File

@@ -182,8 +182,8 @@ LOOP:
inCharQuote = false
} else {
// End of local-part
if i > 63 {
return "", "", fmt.Errorf("Local part must not exceed 64 characters")
if i > 128 {
return "", "", fmt.Errorf("Local part must not exceed 128 characters")
}
if prev == '.' {
return "", "", fmt.Errorf("Local part cannot end with a period")