src/strip.vala
authorAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 09:57:26 +0000 (17:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 09:57:26 +0000 (17:57 +0800)
src/strip.vala

index 9412cda..f7003b5 100644 (file)
@@ -658,11 +658,11 @@ public class Strip : GLib.Object {
                        mailtime = new DateTime.local(int.parse(bits[0]),int.parse(bits[1]),int.parse(bits[2]),0,0,0);
                        
                        var oldest = new  DateTime.now_local();
-                       oldest = oldest.add_months(-1 * StripApplication.opt_min_age);
+                       oldest = oldest.add_months(-1 * StripApplication.opt_age_oldest);
                        var tspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY;
 
                        if (tspan < 0) {
-                               GLib.debug("skip file is %d days older than %d months", (int)tspan, StripApplication.opt_min_age);
+                               GLib.debug("skip file is %d days older than %d months", (int)tspan, StripApplication.opt_age_oldest);
                                return;
                        }