1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 02:57:05 +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

@@ -99,7 +99,8 @@ func TestValidateLocal(t *testing.T) {
}{
{"", false, "Empty local is not valid"},
{"a", true, "Single letter should be fine"},
{strings.Repeat("a", 65), false, "Only valid up to 64 characters"},
{strings.Repeat("a", 128), true, "Valid up to 128 characters"},
{strings.Repeat("a", 129), false, "Only valid up to 128 characters"},
{"FirstLast", true, "Mixed case permitted"},
{"user123", true, "Numbers permitted"},
{"a!#$%&'*+-/=?^_`{|}~", true, "Any of !#$%&'*+-/=?^_`{|}~ are permitted"},