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

index 9ff8097..b09000d 100644 (file)
@@ -412,8 +412,7 @@ public class Strip : GLib.Object {
                                         
                                         '%s'
                                         COALESCE((SELECT id from email_log where msgid = '%s' AND message_sig = '%s' AND  msgid != '' AND message_sig != '' LIMIT 1),0),
-                                        '%s'
-                                        
+                                        COALESCE((SELECT whenact from email_log where msgid = '%s' AND message_sig = '%s' AND  msgid != '' AND message_sig != '' LIMIT 1),''),
                                         
                                         '%s',
                                         %d,
@@ -433,6 +432,7 @@ public class Strip : GLib.Object {
                                 file_size,
                                 
                                this.mysql_escape(this.active_message_exim_id), // msgid ?
+                               this.mysql_escape(this.active_message_exim_id), this.mysql_escape(this.active_message_x_mailfort_sig), // maillog_id
                                this.mysql_escape(this.active_message_exim_id), this.mysql_escape(this.active_message_x_mailfort_sig), // maillog_id
                                 "", //delivered DT..