1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

test: add test for multiline headers

هذا الالتزام موجود في:
Adam Cooke
2024-03-01 18:28:25 +00:00
الأصل 2621a190b1
التزام 77e818a472

عرض الملف

@@ -58,10 +58,13 @@ module SMTPServer
client.handle("To: test1@example.com")
client.handle("To: test2@example.com")
client.handle("X-Something: abcdef1234")
client.handle("X-Multiline: 1234")
client.handle(" 4567")
expect(client.headers["subject"]).to eq ["Test"]
expect(client.headers["from"]).to eq ["test@test.com"]
expect(client.headers["to"]).to eq ["test1@example.com", "test2@example.com"]
expect(client.headers["x-something"]).to eq ["abcdef1234"]
expect(client.headers["x-multiline"]).to eq ["1234 4567"]
end
it "logs content" do