this.created_date = this.created_dir.replace("/", "-");
var bits = this.created_date.split("-");
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.add_months(-1 * StripApplication.opt_min_age);
+ 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);
+ return;
+ }
+
}