corretti bug sull'invio email
This commit is contained in:
@@ -115,7 +115,12 @@ class MailingRecipient < ApplicationRecord
|
||||
end
|
||||
|
||||
MAX_SMTP_DEFERS = 8
|
||||
DEFER_PATTERN = /tentativo (\d+)\//
|
||||
# Deve combaciare col testo generato sotto ("Da ritentare (N/8): ..."),
|
||||
# altrimenti smtp_defer_count legge sempre 0 e il retry diventa infinito
|
||||
# (bug osservato in produzione: un destinatario con SMTP EOF permanente
|
||||
# veniva ritentato ogni 30s all'infinito, bloccando gli altri destinatari
|
||||
# in errore della stessa mailing).
|
||||
DEFER_PATTERN = /Da ritentare \((\d+)\//
|
||||
|
||||
def defer_or_fail!(error)
|
||||
attempt = smtp_defer_count + 1
|
||||
|
||||
Reference in New Issue
Block a user