From: Alan Knowles Date: Thu, 24 May 2018 09:16:46 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=fc9c0ed0fc781defb43824694684cc41a2975f29 src/strip.vala src/strip.vala.c --- diff --git a/src/strip.vala b/src/strip.vala index d95f95c..ce5e7a5 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -898,11 +898,11 @@ public class Strip : GLib.Object { GLib.debug("Skip directory %s is newer than min year: %d", subpath, newest.get_year()); return; } - if (year == newest.get_year() && month != 999 && month > newest.get_month()) { + if (year == newest.get_year() && month > newest.get_month()) { GLib.debug("Skip directory %s is newer than min year: %d/%d", subpath, newest.get_year() , newest.get_month() ); return; } - if (year == newest.get_year() && month == newest.get_month() day != 999 && day > newest.get_day_of_month()) { + if (year == newest.get_year() && month == newest.get_month() && day > newest.get_day_of_month()) { GLib.debug("Skip directory %s is newer than min year: %d/%d/%d", subpath, newest.get_year() , newest.get_month(), newest.get_day_of_month() ); return; }