src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 08:56:12 +0000 (16:56 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 08:56:12 +0000 (16:56 +0800)
src/strip.vala

index e472d6b..be9c1c1 100644 (file)
@@ -864,6 +864,20 @@ public class Strip : GLib.Object {
     
     public void scan_dir(string basepath, string subpath)
     {
+        
+        // determine if path is to old to scan..
+        if (subpath.length > 0 && StripApplication.opt_scan_mailfort) {
+                       var year =  int.parse(subpath.substring(1,4));  // "/2000"
+                       var month = subpath.length > 5 ? int.parse(subpath.substring(6,2)) : 0; // "/2000/12"                   
+                       var day = subpath.length > 8 ? int.parse(subpath.substring(9,2)) : 0; // "/2000/12/01"                  
+               
+               
+               
+               
+               
+        }
+        
+        
         var f = File.new_for_path(basepath + subpath);
                FileEnumerator file_enum;
         var cancellable = new Cancellable ();