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

index 841e439..da97976 100644 (file)
@@ -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;