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