From: Alan Knowles Date: Fri, 4 May 2018 05:24:21 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=958a513e779b8b9a8dc065dca39b3cef026f0dd7;p=app.mailtrimmer src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index 2414bc8..d941b8a 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -454,6 +454,17 @@ public class Strip : GLib.Object { GLib.debug("fn = %s, m5=%s, id= %s", filename, mime_type, this.active_message_id); this.query(""" + + SELECT attachment_update( + %d, -- in_id INT(11), + '%s', -- in_mime_type varchar(255), + %d, -- in_mime_size int(11), + '%s', --in_created DATETIME, + '%s', -- in_mailfort_sig varchar(64) + + ) as result + + INSERT INTO Attachment (