مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Style/MultilineBlockChain
هذا الالتزام موجود في:
@@ -115,10 +115,10 @@ module Mail
|
||||
def initialize(parts_list)
|
||||
@parts_list = parts_list
|
||||
@content_disposition_type = "attachment"
|
||||
parts_list.map do |p|
|
||||
parts = parts_list.map do |p|
|
||||
p.parts.empty? && p.attachment? ? p : p.attachments
|
||||
end.flatten.compact.each { |a| self << a }
|
||||
self
|
||||
end.flatten.compact
|
||||
parts.each { |a| self << a }
|
||||
end
|
||||
# rubocop:enable Lint/MissingSuper
|
||||
|
||||
|
||||
@@ -34,14 +34,15 @@ module Postal
|
||||
|
||||
def normalized_headers
|
||||
[].tap do |new_headers|
|
||||
headers.select { |h|
|
||||
dkim_headers = headers.select { |h|
|
||||
h.match(%r{
|
||||
^(
|
||||
from|sender|reply-to|subject|date|message-id|to|cc|mime-version|content-type|content-transfer-encoding|
|
||||
resent-to|resent-cc|resent-from|resent-sender|resent-message-id|in-reply-to|references|list-id|list-help|
|
||||
list-owner|list-unsubscribe|list-subscribe|list-post
|
||||
):}ix)
|
||||
}.each do |h|
|
||||
}
|
||||
dkim_headers.each do |h|
|
||||
new_headers << normalize_header(h)
|
||||
end
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم