src/strip.vala
[app.mailtrimmer] / src / strip.vala
index cb3e2c7..72970f7 100644 (file)
@@ -452,10 +452,9 @@ public class Strip : GLib.Object {
                                                ,GLib.FileQueryInfoFlags.NONE,null);
        var file_size = (int) fileinfo.get_size();
 
-               
-
+                
       
-               this.execute("""
+               this.real_query(-1, """
                       
                       
                                INSERT INTO Attachment  (  
@@ -527,7 +526,7 @@ public class Strip : GLib.Object {
              
              )
                );
-                GLib.error("added attachment?");
+               // GLib.error("added attachment?");
     }
     
     
@@ -685,11 +684,11 @@ public class Strip : GLib.Object {
     }
     public string query(string str)
     {
-           return this.real_query(true, str);
+           return this.real_query(1, str);
     }
     public string execute(string str)
     {
-           return this.real_query(false, str);
+           return this.real_query(0, str);
     }
     /**
     * need_return 
@@ -716,7 +715,7 @@ public class Strip : GLib.Object {
                }
                
                if (need_return == -1) {
-                       return '';
+                       return "";
                }
         var rs = mysql.use_result();