Skip to content

Commit

Permalink
remove message id from composed email
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Sep 5, 2019
1 parent f31ec62 commit d21572e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions provider/sender/email_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func TestEmail_buildMessage(t *testing.T) {
assert.Contains(t, msg, "From: from@example.com\nTo: to@example.com\nSubject: subj\n", msg)
assert.Contains(t, msg, "this is a test\r\n12345", msg)
assert.Contains(t, msg, "Date: ", msg)
assert.Contains(t, msg, "Message-Id: <", msg)
assert.Contains(t, msg, "Content-Transfer-Encoding: quoted-printable", msg)
}

Expand All @@ -64,7 +63,6 @@ func TestEmail_buildMessageWithMIME(t *testing.T) {
assert.Contains(t, msg, "From: from@example.com\nTo: to@example.com\nSubject: subj\nContent-Transfer-Encoding: quoted-printable\nMIME-version: 1.0\nContent-Type: text/html; charset=\"UTF-8\"", msg)
assert.Contains(t, msg, "\n\nthis is a test\r\n12345", msg)
assert.Contains(t, msg, "Date: ", msg)
assert.Contains(t, msg, "Message-Id: <", msg)
}

func TestEmail_New(t *testing.T) {
Expand All @@ -89,7 +87,6 @@ func TestEmail_Send(t *testing.T) {
"0\nContent-Type: text/html; charset=\"UTF-8\"", msg)
assert.Contains(t, msg, "\n\nsome text", msg)
assert.Contains(t, msg, "Date: ", msg)
assert.Contains(t, msg, "Message-Id: <", msg)

assert.True(t, fakeSMTP.auth)
assert.True(t, fakeSMTP.quit)
Expand Down

0 comments on commit d21572e

Please sign in to comment.