1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00

storage: Store addresses as mail.Address for #69

This commit is contained in:
James Hillyerd
2018-03-11 16:56:09 -07:00
parent 487e491d6f
commit 3bc66d2788
9 changed files with 49 additions and 33 deletions

View File

@@ -67,16 +67,16 @@ func TestRestMailboxList(t *testing.T) {
data1 := &InputMessageData{
Mailbox: "good",
ID: "0001",
From: "from1",
To: []string{"to1"},
From: "<from1@host>",
To: []string{"<to1@host>"},
Subject: "subject 1",
Date: time.Date(2012, 2, 1, 10, 11, 12, 253, time.FixedZone("PST", -800)),
}
data2 := &InputMessageData{
Mailbox: "good",
ID: "0002",
From: "from2",
To: []string{"to1"},
From: "<from2@host>",
To: []string{"<to1@host>"},
Subject: "subject 2",
Date: time.Date(2012, 7, 1, 10, 11, 12, 253, time.FixedZone("PDT", -700)),
}
@@ -171,7 +171,7 @@ func TestRestMessage(t *testing.T) {
data1 := &InputMessageData{
Mailbox: "good",
ID: "0001",
From: "from1",
From: "<from1@host>",
Subject: "subject 1",
Date: time.Date(2012, 2, 1, 10, 11, 12, 253, time.FixedZone("PST", -800)),
Header: mail.Header{