fix delivery from/to smtp addresses with double quotes

found while adding tests for smtp and imap for address with empty double (double
quoted) localparts.
This commit is contained in:
Mechiel Lukkien
2023-06-03 15:29:18 +02:00
parent 77d78191f8
commit 5a4f35ad5f
5 changed files with 39 additions and 1 deletions

View File

@ -387,8 +387,12 @@ func TestLogin(t *testing.T) {
tc.close()
tc = start(t)
defer tc.close()
tc.transactf("ok", `login "mjl@mox.example" "testtest"`)
tc.close()
tc = start(t)
tc.transactf("ok", `login "\"\"@mox.example" "testtest"`)
defer tc.close()
tc.transactf("bad", "logout badarg")
tc.transactf("ok", "logout")