مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Lint/MissingSuper
هذا الالتزام موجود في:
@@ -49,6 +49,7 @@ class Postal::Errors::AuthenticationError < Postal::Error
|
||||
attr_reader :error
|
||||
|
||||
def initialize(error)
|
||||
super()
|
||||
@error = error
|
||||
end
|
||||
|
||||
|
||||
@@ -111,6 +111,7 @@ module Mail
|
||||
# Handle attached emails as attachments
|
||||
class AttachmentsList < Array
|
||||
|
||||
# rubocop:disable Lint/MissingSuper
|
||||
def initialize(parts_list)
|
||||
@parts_list = parts_list
|
||||
@content_disposition_type = "attachment"
|
||||
@@ -119,6 +120,7 @@ module Mail
|
||||
end.flatten.compact.each { |a| self << a }
|
||||
self
|
||||
end
|
||||
# rubocop:enable Lint/MissingSuper
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ module Postal
|
||||
class HTTPSender < Sender
|
||||
|
||||
def initialize(endpoint, options = {})
|
||||
super()
|
||||
@endpoint = endpoint
|
||||
@options = options
|
||||
@log_id = Nifty::Utils::RandomString.generate(length: 8).upcase
|
||||
|
||||
@@ -6,6 +6,7 @@ module Postal
|
||||
class SMTPSender < Sender
|
||||
|
||||
def initialize(domain, source_ip_address, options = {})
|
||||
super()
|
||||
@domain = domain
|
||||
@source_ip_address = source_ip_address
|
||||
@options = options
|
||||
@@ -143,9 +144,9 @@ module Postal
|
||||
mail_from = "#{message.server.token}@#{Postal.config.dns.return_path}"
|
||||
end
|
||||
if Postal.config.general.use_resent_sender_header
|
||||
raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message
|
||||
raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message
|
||||
else
|
||||
raw_message = message.raw_message
|
||||
raw_message = message.raw_message
|
||||
end
|
||||
tries = 0
|
||||
begin
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم