mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-05 14:07:38 +03:00
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:
parent
3f92add25e
commit
e407ec9f94
5 changed files with 13 additions and 11 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue