1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-18 13:59:47 +00:00

feat: new configuration system (and schema) (#2819)

هذا الالتزام موجود في:
Adam Cooke
2024-02-26 12:41:57 +00:00
ملتزم من قبل GitHub
الأصل 1c5ff5a9a6
التزام 0163ac3d10
77 ملفات معدلة مع 1840 إضافات و593 حذوفات

عرض الملف

@@ -12,7 +12,7 @@ describe ReceivedHeader do
it "returns the correct string" do
result = described_class.generate(nil, "testhelo", "1.1.1.1", :smtp)
expect(result).to eq "from testhelo (hostname.com [1.1.1.1]) " \
"by #{Postal.config.dns.smtp_server_hostname} " \
"by #{Postal::Config.postal.smtp_hostname} " \
"with SMTP; #{Time.now.utc.rfc2822}"
end
end
@@ -21,7 +21,7 @@ describe ReceivedHeader do
it "returns the correct string" do
server = Server.new(privacy_mode: true)
result = described_class.generate(server, "testhelo", "1.1.1.1", :smtp)
expect(result).to eq "by #{Postal.config.dns.smtp_server_hostname} " \
expect(result).to eq "by #{Postal::Config.postal.smtp_hostname} " \
"with SMTP; #{Time.now.utc.rfc2822}"
end
end
@@ -31,7 +31,7 @@ describe ReceivedHeader do
server = Server.new(privacy_mode: false)
result = described_class.generate(server, "testhelo", "1.1.1.1", :smtp)
expect(result).to eq "from testhelo (hostname.com [1.1.1.1]) " \
"by #{Postal.config.dns.smtp_server_hostname} " \
"by #{Postal::Config.postal.smtp_hostname} " \
"with SMTP; #{Time.now.utc.rfc2822}"
end
end
@@ -40,7 +40,7 @@ describe ReceivedHeader do
it "returns the correct string" do
result = described_class.generate(nil, "web-ui", "1.1.1.1", :http)
expect(result).to eq "from web-ui (hostname.com [1.1.1.1]) " \
"by #{Postal.config.web.host} " \
"by #{Postal::Config.postal.web_hostname} " \
"with HTTP; #{Time.now.utc.rfc2822}"
end
end