mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +03:00
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:
@ -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")
|
||||
|
Reference in New Issue
Block a user