From: Alan Knowles Date: Fri, 4 Aug 2017 06:51:58 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ac61c62c73ab96f7926f06fcb6f7625d784e6860 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 842dde03..16864b16 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -350,6 +350,7 @@ class Pman_Core_NotifySend extends Pman $w->to_email = $p->email; //$this->addEvent('NOTIFY', $w, 'GREYLISTED ' . $p->email . ' ' . $res->toString()); + // we can only update act_when if it has not been sent already (only happens when running in force mode..) $w->act_when = $w->sent == '0000-00-00 00:00:00' ? date('Y-m-d H:i:s', strtotime('NOW + ' . $retry . ' MINUTES')) : $w->act_when; $w->update($ww);