مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Style/TrailingCommaInArrayLiteral
هذا الالتزام موجود في:
@@ -45,8 +45,16 @@ class ServersController < ApplicationController
|
||||
extra_params = [:spam_threshold, :spam_failure_threshold, :postmaster_address]
|
||||
|
||||
if current_user.admin?
|
||||
extra_params += [:send_limit, :allow_sender, :privacy_mode, :log_smtp_data, :outbound_spam_threshold,
|
||||
:message_retention_days, :raw_message_retention_days, :raw_message_retention_size]
|
||||
extra_params += [
|
||||
:send_limit,
|
||||
:allow_sender,
|
||||
:privacy_mode,
|
||||
:log_smtp_data,
|
||||
:outbound_spam_threshold,
|
||||
:message_retention_days,
|
||||
:raw_message_retention_days,
|
||||
:raw_message_retention_size,
|
||||
]
|
||||
end
|
||||
|
||||
if @server.update(safe_params(*extra_params))
|
||||
|
||||
@@ -111,9 +111,11 @@ class DNSResolver
|
||||
def dns(raise_timeout_errors: false)
|
||||
Resolv::DNS.open(nameserver: @nameservers,
|
||||
raise_timeout_errors: raise_timeout_errors) do |dns|
|
||||
dns.timeouts = [Postal::Config.dns.timeout,
|
||||
Postal::Config.dns.timeout / 2,
|
||||
Postal::Config.dns.timeout / 2]
|
||||
dns.timeouts = [
|
||||
Postal::Config.dns.timeout,
|
||||
Postal::Config.dns.timeout / 2,
|
||||
Postal::Config.dns.timeout / 2,
|
||||
]
|
||||
yield dns
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ class ReplySeparator
|
||||
/^>*\s*On.{10,200}wrote:\s*$.*/m,
|
||||
/^>*\s*Sent from my.*/m,
|
||||
/^>*\s*=== Please reply above this line ===.*/m,
|
||||
/(^>.*\n?){10,}/
|
||||
/(^>.*\n?){10,}/,
|
||||
].freeze
|
||||
|
||||
def self.separate(text)
|
||||
|
||||
@@ -155,7 +155,7 @@ module SMTPServer
|
||||
[
|
||||
"250-My capabilities are",
|
||||
Postal::Config.smtp_server.tls_enabled? && !@tls ? "250-STARTTLS" : nil,
|
||||
"250 AUTH CRAM-MD5 PLAIN LOGIN"
|
||||
"250 AUTH CRAM-MD5 PLAIN LOGIN",
|
||||
].compact
|
||||
end
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module Worker
|
||||
# @return [Array<Class>]
|
||||
JOBS = [
|
||||
Jobs::ProcessQueuedMessagesJob,
|
||||
Jobs::ProcessWebhookRequestsJob
|
||||
Jobs::ProcessWebhookRequestsJob,
|
||||
].freeze
|
||||
|
||||
# An array of tasks that should be processed
|
||||
@@ -41,7 +41,7 @@ module Worker
|
||||
PruneSuppressionListsScheduledTask,
|
||||
PruneWebhookRequestsScheduledTask,
|
||||
SendNotificationsScheduledTask,
|
||||
TidyQueuedMessagesTask
|
||||
TidyQueuedMessagesTask,
|
||||
].freeze
|
||||
|
||||
# @param [Integer] thread_count The number of worker threads to run in this process
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم