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

style(rubocop): Style/MultilineBlockChain

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 23:39:38 +00:00
الأصل 013b3ea931
التزام c6326a6524
2 ملفات معدلة مع 6 إضافات و5 حذوفات

عرض الملف

@@ -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