projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec98932
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2018 09:06:59 +0000
(17:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2018 09:06:59 +0000
(17:06 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
71351d6
..
74d1ad1
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-648,7
+648,7
@@
public class Strip : GLib.Object {
this.active_name = name;
this.active_message_id = "";
this.active_name = name;
this.active_message_id = "";
- DateTime mailtime;
+ DateTime mailtime
= new DateTime.local()
;
if (StripApplication.opt_scan_mailfort) {
this.created_dir = this.active_path.substring(this.base_dir.length + 1 );
this.created_date = this.created_dir.replace("/", "-");
if (StripApplication.opt_scan_mailfort) {
this.created_dir = this.active_path.substring(this.base_dir.length + 1 );
this.created_date = this.created_dir.replace("/", "-");
@@
-739,10
+739,10
@@
public class Strip : GLib.Object {
var oldest = new DateTime.now_local();
oldest.add_months(-1 * StripApplication.opt_min_age);
var oldest = new DateTime.now_local();
oldest.add_months(-1 * StripApplication.opt_min_age);
- var tspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY;
+ var
r
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);
+ if (
r
tspan < 0) {
+ GLib.debug("skip file is %d days older than %d months", (int)
r
tspan, StripApplication.opt_min_age);
return;
}
return;
}