1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

style(rubocop): Style/MutableConstant

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 17:34:29 +00:00
الأصل d508772a40
التزام 129dffab9e
14 ملفات معدلة مع 21 إضافات و24 حذوفات

عرض الملف

@@ -45,8 +45,8 @@ module Postal
class LogFormatter
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S.%3N".freeze
COLORS = [32, 34, 35, 31, 32, 33]
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S.%3N"
COLORS = [32, 34, 35, 31, 32, 33].freeze
def call(severity, datetime, progname, msg)
time = datetime.strftime(TIME_FORMAT)

عرض الملف

@@ -8,8 +8,8 @@ module Postal
@database = database
end
STATS_GAPS = { hourly: :hour, daily: :day, monthly: :month, yearly: :year }
COUNTERS = [:incoming, :outgoing, :spam, :bounces, :held]
STATS_GAPS = { hourly: :hour, daily: :day, monthly: :month, yearly: :year }.freeze
COUNTERS = [:incoming, :outgoing, :spam, :bounces, :held].freeze
#
# Increment an appropriate counter

عرض الملف

@@ -7,7 +7,7 @@ module Postal
EXCLUSIONS = {
outgoing: ["NO_RECEIVED", "NO_RELAYS", "ALL_TRUSTED", "FREEMAIL_FORGED_REPLYTO", "RDNS_DYNAMIC", "CK_HELO_GENERIC", /^SPF_/, /^HELO_/, /DKIM_/, /^RCVD_IN_/],
incoming: []
}
}.freeze
def inspect_message(inspection)
data = nil

عرض الملف

@@ -6,7 +6,7 @@ module Postal
OUR_HOSTNAMES = {
smtp: Postal.config.dns.smtp_server_hostname,
http: Postal.config.web.host
}
}.freeze
class << self

عرض الملف

@@ -15,7 +15,7 @@ module Postal
/^>*\s*Sent from my.*/m,
/^>*\s*=== Please reply above this line ===.*/m,
/(^>.*\n?){10,}/
]
].freeze
def self.separate(text)
return "" unless text.is_a?(String)