From 8dfc3e2ac3bc96d36601de11385fc664d65e5732 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 9 May 2018 17:03:44 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index e22ead1..c06d5b8 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -729,8 +729,11 @@ public class Strip : GLib.Object { var oldest = new DateTime.now_local(); oldest.add_months(-1 * StripApplication.opt_min_age); var tspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY; - GLib.debug("File is %d days older than %d", (int)tspan, StripApplication.opt_min_age); - + + if (tspan < 0) { + GLib.debug("skip file is %d days older than %d months", (int)tspan, StripApplication.opt_min_age); + } + -- 2.39.2