Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • anatoli/postal
1 result
Show changes
Commits on Source (3)
Loading
Loading
@@ -17,7 +17,7 @@
@message.from = "test@#{domain.name}"
end
end
@message.subject = "Test Message at #{Time.now.to_s(:long)}"
@message.subject = "Test Message at #{Time.zone.now.to_s(:long)}"
@message.plain_body = "This is a message to test the delivery of messages through Postal."
end
 
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
web:
host: localhost:5000
protocol: http
fast_server:
bind_address: 0.0.0.0
port: 5001
ssl_port: 5002
main_db:
username: root
logging:
stdout: true
message_db:
username: root
rabbitmq:
username: guest
password: guest
vhost: /
smtp_server:
port: 2525
rails:
environment: development
secret_key: 58e93bbe3773facec4758b49c693f48dee388b07af0d84927bb9733f939abaacf8b44f6298a5d2e96339d0f2478ec6d0b6b1c656d469a2bac4d6f4b69368870c
Loading
Loading
@@ -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
Loading
Loading