From: Alan Knowles Date: Thu, 24 May 2018 09:10:24 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=8f7ccda9347d5226af8b4a3b2a9883f6f77d9d8e src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index 6cc604f..9fc2d02 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -669,7 +669,7 @@ public class Strip : GLib.Object { var newest = new DateTime.now_local(); newest = oldest.add_months(-1 * StripApplication.opt_age_newest); tspan = mailtime.difference(newest) / GLib.TimeSpan.DAY; - if (tspan < 0) { + if (tspan > 0) { GLib.debug("skip file is %d days newer than %d months", (int)tspan, StripApplication.opt_age_newest); return; }