From dc06777c9c40f14202fb9318f8106e9ebb305023 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 29 Jun 2018 16:08:48 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index e05a408..743f981 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -480,11 +480,13 @@ public class Strip : GLib.Object { ) VALUES ( %d, -- id + '%s' , -- msgid 0, '%s' , -- filename - '', - '', + '%s', -- mimetype + + '%s', -- stored file anme '', 'attachment', 0, @@ -497,22 +499,17 @@ public class Strip : GLib.Object { )" - INSERT INTO Attachment ( - id, msgid, checksum, mime_type, - mime_filename, filesize,mime_size, mime_cdisp - ) values ( - ( - %d, '%s', '%s', '%s', - '%s' %d, %d, 'attachment', - - ) - """.printf( id, this.mysql_escape(this.active_message_exim_id), + this.mysql_escape(filename), + this.mysql_escape(mime_type), + this.mysql_escape(file_path), + file_size + file_size this.mysql_escape(chksum), - this.mysql_escape(mime_type), - this.mysql_escape(filename), + + file_size )); -- 2.39.2