مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
update Received headers to use UTC timestamps
هذا الالتزام موجود في:
@@ -95,7 +95,7 @@ class IncomingMessagePrototype
|
||||
:content => attachment[:data]
|
||||
}
|
||||
end
|
||||
mail.header['Received'] = "from #{@source_type} (#{@ip} [#{@ip}]) by Postal with HTTP; #{Time.now.rfc2822.to_s}"
|
||||
mail.header['Received'] = "from #{@source_type} (#{@ip} [#{@ip}]) by Postal with HTTP; #{Time.now.utc.rfc2822.to_s}"
|
||||
mail.to_s
|
||||
end
|
||||
end
|
||||
|
||||
@@ -326,7 +326,7 @@ module Postal
|
||||
@headers = {}
|
||||
@receiving_headers = true
|
||||
|
||||
received_header_content = "from #{@helo_name} (#{@hostname} [#{@ip_address}]) by #{Postal.config.dns.smtp_server_hostname} with SMTP; #{Time.now.rfc2822.to_s}".force_encoding('BINARY')
|
||||
received_header_content = "from #{@helo_name} (#{@hostname} [#{@ip_address}]) by #{Postal.config.dns.smtp_server_hostname} with SMTP; #{Time.now.utc.rfc2822.to_s}".force_encoding('BINARY')
|
||||
if !Postal.config.smtp_server.strip_received_headers?
|
||||
@data << "Received: #{received_header_content}\r\n"
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم