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