Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidMailboxName returns false for . in the mailbox part, i.e. maddy.bug@example.org #275

Closed
acim opened this issue Sep 30, 2020 · 0 comments
Labels
bug Something isn't working.

Comments

@acim
Copy link
Contributor

acim commented Sep 30, 2020

Describe the bug

Address maddy.bug@example.org should be correct. For addresses like "maddy.bug"@example.org ValidMailboxName works fine, but it returns false if there are no quotes. However, with quotes and forwarding, recipient is not recognizes by the target servers including Maddy.

Steps to reproduce

package address_test

import (
	"testing"

	"github.com/foxcpp/maddy/framework/address"
)

func TestValidMailboxName(t *testing.T) {
	if !address.ValidMailboxName("caddy.bug") {
		t.Error("caddy.bug should be valid mailbox name")
	}
}

Environment information

  • maddy version: master branch
@acim acim added the bug Something isn't working. label Sep 30, 2020
@foxcpp foxcpp closed this as completed in 324a3b3 Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant