مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Layout/*
هذا الالتزام موجود في:
@@ -34,12 +34,14 @@ module Postal
|
||||
|
||||
def normalized_headers
|
||||
[].tap do |new_headers|
|
||||
headers.select { |h| h.match(%r{
|
||||
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|
|
||||
):}ix)
|
||||
}.each do |h|
|
||||
new_headers << normalize_header(h)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -71,8 +71,8 @@ module Postal
|
||||
#
|
||||
def clean
|
||||
%w[clicks deliveries links live_stats loads messages
|
||||
raw_message_sizes spam_checks stats_daily stats_hourly
|
||||
stats_monthly stats_yearly suppressions webhook_requests].each do |table|
|
||||
raw_message_sizes spam_checks stats_daily stats_hourly
|
||||
stats_monthly stats_yearly suppressions webhook_requests].each do |table|
|
||||
@database.query("TRUNCATE `#{@database.database_name}`.`#{table}`")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -92,7 +92,8 @@ module Postal
|
||||
link_id: link["id"],
|
||||
ip_address: request.ip,
|
||||
user_agent: request.user_agent,
|
||||
timestamp: time })
|
||||
timestamp: time
|
||||
})
|
||||
SendWebhookJob.queue(:main,
|
||||
server_id: message_db.server_id,
|
||||
event: "MessageLinkClicked",
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم