From: Alan Knowles Date: Thu, 24 May 2018 09:35:43 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=6b4f3b5f1fe327373194c33e8f78c3465d8e7d31 src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index 841e439..da97976 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -760,8 +760,8 @@ public class Strip : GLib.Object { var oldest = new DateTime.now_local(); oldest = oldest.add_months(-1 * StripApplication.opt_age_oldest); - var rtspan = oldest.difference(oldest) / GLib.TimeSpan.DAY; - GLib.debug("Checking oldest %s days difference", rtspan.to_string() ); + var rtspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY; + GLib.debug("Checking oldest %s to %s %s days difference", rtspan.to_string() ); if (rtspan < 0) { GLib.debug("skip(2) file is %d days older than %d months", (int)rtspan, StripApplication.opt_age_oldest); return;