Bump go-smtp version, update tests to expect LF in messages

Upstream change fixes \r\n\r\n being mangled into \r\n\n.
This commit is contained in:
fox.cpp 2020-07-24 15:12:04 +03:00
parent 3f92add25e
commit e407ec9f94
No known key found for this signature in database
GPG key ID: 5B991F6215D2FCC0
5 changed files with 13 additions and 11 deletions

View file

@ -607,7 +607,7 @@ func TestQueueDelivery_AbortNoDangling(t *testing.T) {
IDRaw := sha1.Sum([]byte(t.Name()))
encodedID := hex.EncodeToString(IDRaw[:])
body := buffer.MemoryBuffer{Slice: []byte("foobar")}
body := buffer.MemoryBuffer{Slice: []byte("foobar\r\n")}
ctx := module.MsgMetadata{
DontTraceSender: true,
ID: encodedID,
@ -782,7 +782,7 @@ func TestQueueDSN_RcptRewrite(t *testing.T) {
IDRaw := sha1.Sum([]byte(t.Name()))
encodedID := hex.EncodeToString(IDRaw[:])
body := buffer.MemoryBuffer{Slice: []byte("foobar")}
body := buffer.MemoryBuffer{Slice: []byte("foobar\r\n")}
ctx := module.MsgMetadata{
DontTraceSender: true,
OriginalFrom: "test3@example.org",