Fixed --clean: "retries" was not checked!
authorshort <>
Fri, 11 Oct 2002 14:02:22 +0000 (14:02 +0000)
committershort <>
Fri, 11 Oct 2002 14:02:22 +0000 (14:02 +0000)
perlmail-submit

index 43d3fdc..782bb4d 100755 (executable)
@@ -177,7 +177,7 @@ my($keyword,$interval)=@_;
        $sec+=$1 while s/(\d+)s//g;
        die "Interval parse error; left \"$_\", parsed: $interval" if $_ ne "";
        $sth=$DBI->prepare(($print ? "select id" : "delete")
-                       ." from $DB_table where time<from_unixtime(unix_timestamp()-$sec)");
+                       ." from $DB_table where retries is null and time<from_unixtime(unix_timestamp()-$sec)");
        $sth->execute();
        if (!$print) {
                print $sth->rows()."\n";