projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54cf9e6
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2018 08:54:45 +0000
(16:54 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2018 08:54:45 +0000
(16:54 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
dbbed94
..
fdc12d8
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-658,10
+658,13
@@
public class Strip : GLib.Object {
var file_size = (int) fileinfo.get_size();
var mod_time = fileinfo.get_modification_time();
var file_size = (int) fileinfo.get_size();
var mod_time = fileinfo.get_modification_time();
+ DateTime mailtime;
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("/", "-");
+ 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);
} else {
// it's a mail directory...
// use the last modification time? as the default...
} else {
// it's a mail directory...
// use the last modification time? as the default...