X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2Fstrip.vala;h=a4c5a6994032b4c003ba8b5dee4fc79c386d884e;hb=a42613a1384a4aadee86d94f6712525f5f5807c5;hp=8895d3780757f0418e2dc341b8a5589b5afffa4c;hpb=690559b1c3b833f3fc01927774fa02cdf3ebc2d7;p=app.mailtrimmer diff --git a/src/strip.vala b/src/strip.vala index 8895d37..a4c5a69 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -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,