From: Alan Knowles Date: Wed, 9 May 2018 09:09:41 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=36b4344a91704253a548e2ab1d9a00db37202394;p=app.mailtrimmer src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index a5332df..ed6af9f 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -738,11 +738,11 @@ public class Strip : GLib.Object { } var oldest = new DateTime.now_local(); - oldest.add_months(-1 * StripApplication.opt_min_age); + oldest = oldest.add_months(-1 * StripApplication.opt_min_age); var rtspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY; if (rtspan < 0) { - GLib.debug("skip file is %d days older than %d months", (int)rtspan, StripApplication.opt_min_age); + GLib.debug("skip(2) file is %d days older than %d months", (int)rtspan, StripApplication.opt_min_age); return; }