مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
Option do Change Hold Time
هذا الالتزام موجود في:
ملتزم من قبل
Charlie Smurthwaite
الأصل
48daec1328
التزام
e55b081721
@@ -12,6 +12,7 @@ general:
|
|||||||
use_ip_pools: false
|
use_ip_pools: false
|
||||||
exception_url:
|
exception_url:
|
||||||
maximum_delivery_attempts: 18
|
maximum_delivery_attempts: 18
|
||||||
|
maximum_hold_expiry_days: 7
|
||||||
use_local_ns_for_domains: false
|
use_local_ns_for_domains: false
|
||||||
|
|
||||||
web_server:
|
web_server:
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ module Postal
|
|||||||
#
|
#
|
||||||
def create_delivery(status, options = {})
|
def create_delivery(status, options = {})
|
||||||
delivery = Delivery.create(self, options.merge(:status => status))
|
delivery = Delivery.create(self, options.merge(:status => status))
|
||||||
hold_expiry = status == 'Held' ? 7.days.from_now.to_f : nil
|
hold_expiry = status == 'Held' ? Postal.config.general.maximum_hold_expiry_days.days.from_now.to_f : nil
|
||||||
self.update(:status => status, :last_delivery_attempt => delivery.timestamp.to_f, :held => status == 'Held' ? 1 : 0, :hold_expiry => hold_expiry)
|
self.update(:status => status, :last_delivery_attempt => delivery.timestamp.to_f, :held => status == 'Held' ? 1 : 0, :hold_expiry => hold_expiry)
|
||||||
delivery
|
delivery
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم