مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-19 14:19:48 +00:00
style(rubocop): Style/TrailingCommaInArrayLiteral
هذا الالتزام موجود في:
@@ -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
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم