src/strip.vala
authorAlan Knowles <alan@roojs.com>
Fri, 4 May 2018 05:35:08 +0000 (13:35 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 4 May 2018 05:35:08 +0000 (13:35 +0800)
src/strip.vala

index 48a78ae..bcc259d 100644 (file)
@@ -356,7 +356,23 @@ public class Strip : GLib.Object {
        // initialize it with known data..
        // that should wipe out dupes.
        
-       
+       this.query("""
+               SELECT 
+               
+               attachment_init(
+                               msgid,
+                               checksum,
+                               mime_filename,
+                               filesize
+                       ) as id 
+                       FROM
+                       attachment
+                       WHERE
+                       id = %d
+                       
+          """.printf(
+                       int.parse(sid)
+               ));
        this.query("""
                SELECT attachment_update(
                                %d, -- in_id INT(11),