src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 May 2018 10:05:35 +0000 (18:05 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 May 2018 10:05:35 +0000 (18:05 +0800)
src/strip.vala

index 6fb3362..340a273 100644 (file)
@@ -375,6 +375,20 @@ public class Strip : GLib.Object {
                        INSERT INTO
                                        Attachment 
                                (
+                                        queue_id,
+                                        mime_charset,
+                                        mime_cdisp,
+                                        mime_size,
+                                        
+                                        mime_is_cover,
+                                        mime_is_multi,
+                                        mime_is_mail,
+                                        
+                                        msgid,
+                                        maillog_id,
+                                        delivered,
+                                        
+                                        
                                         checksum,
                                         filesize,
                                         stored_filename,
@@ -387,6 +401,20 @@ public class Strip : GLib.Object {
                                )
                                        VALUES
                                (
+                                        %d
+                                        '%s',
+                                        '%s',
+                                        %d,
+                                        
+                                        0,
+                                        0,
+                                        0,
+                                        
+                                        '%s'
+                                        %d,
+                                        '%s'
+                                        
+                                        
                                         '%s',
                                         %d,
                                         '%s',
@@ -399,8 +427,16 @@ public class Strip : GLib.Object {
                                )
                                         
                      """.printf(
-                     
-                     
+                               0, // queue_id
+                               "",
+                               "attachment",
+                                file_size,
+                                
+                                "", // queue_id ?
+                                0, // maillog_id
+                                "", //delivered DT..
+                                
+                                
                                         chksum,
                                         file_size,
                                         "", // filled in after we find out the id..