src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:14:05 +0000 (17:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:14:05 +0000 (17:14 +0800)
src/strip.vala

index 8895d37..a4c5a69 100644 (file)
@@ -759,7 +759,7 @@ public class Strip : GLib.Object {
                        return;
                }
                var newest = new  DateTime.now_local();
-               newest = oldest.add_months(-1 * StripApplication.opt_age_newest);
+               newest = newest.add_months(-1 * StripApplication.opt_age_newest);
                rtspan = mailtime.difference(newest) / GLib.TimeSpan.DAY;
                if (rtspan < 0) {
                        GLib.debug("skip(2) file is %d days newer than %d months : %s", (int)rtspan, StripApplication.opt_age_newest,