From ba5bfbd6a0af9ea33bedb2948822417bd1a3fbc5 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 10 Feb 2024 17:17:06 +0000 Subject: [PATCH] fix: fix bug with received header in SMTP server --- lib/postal/smtp_server/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/postal/smtp_server/client.rb b/lib/postal/smtp_server/client.rb index 17c0888c..7d93eb69 100644 --- a/lib/postal/smtp_server/client.rb +++ b/lib/postal/smtp_server/client.rb @@ -367,8 +367,8 @@ def data(data) received_header = Postal::ReceivedHeader.generate(@credential&.server, @helo_name, @ip_address, :smtp) .force_encoding("BINARY") - @data << "Received: #{received_header_content}\r\n" - @headers["received"] = [received_header_content] + @data << "Received: #{received_header}\r\n" + @headers["received"] = [received_header] handler = proc do |data| if data == "."