X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=usr%2Fsbin%2Fopendmarc-expire;fp=usr%2Fsbin%2Fopendmarc-expire;h=a69951201f5d8b5d6e027dd8b74e3092db37144c;hb=da92e3b4e53441f5c960812a29c68126af733459;hp=ccffc2dbb8f98283667ab273c7dd30a2d2be43e0;hpb=256870664833badf02ba69cb474a5efecb5c5fbb;p=opendmarc.git diff --git a/usr/sbin/opendmarc-expire b/usr/sbin/opendmarc-expire index ccffc2d..a699512 100755 --- a/usr/sbin/opendmarc-expire +++ b/usr/sbin/opendmarc-expire @@ -340,7 +340,7 @@ if ($verbose) print STDERR "$progname: expiring request data older than $maxage days\n"; } -$dbi_s = $dbi_h->prepare("DELETE FROM requests WHERE lastsent <= DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL ? DAY) AND NOT lastsent = '0000-00-00 00:00:00'"); +$dbi_s = $dbi_h->prepare("DELETE FROM requests WHERE lastsent <= DATE_SUB(CURRENT_TIMESTAMP(), INTERVAL ? DAY) AND NOT lastsent = '1971-01-01 00:00:01'"); $rows = $dbi_s->execute($maxage); if (!$rows) {