Skip to content

Commit

Permalink
fix: fix bug with received header in SMTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 10, 2024
1 parent 97a3284 commit ba5bfbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/postal/smtp_server/client.rb
Expand Up @@ -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 == "."
Expand Down

0 comments on commit ba5bfbd

Please sign in to comment.