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

index f5f61e6..6cc604f 100644 (file)
@@ -661,7 +661,7 @@ public class Strip : GLib.Object {
                        oldest = oldest.add_months(-1 * StripApplication.opt_age_oldest);
                        var tspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY;
 
-                       if (tspan > 0) {
+                       if (tspan < 0) {
                                GLib.debug("skip file is %d days older than %d months", (int)tspan, StripApplication.opt_age_oldest);
                                return;
                        }