diff --git a/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php b/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php index f6df18bef6..99103a2f2e 100644 --- a/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php +++ b/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php @@ -1,20 +1,20 @@ loadAllWhere( 'dateCreated < %d LIMIT 100', - PhabricatorTime::getNow()); + PhabricatorTime::getNow() - $ttl); foreach ($mails as $mail) { $mail->delete(); } return (count($mails) == 100); } }