return;
}
- file_id = row[0];
- //create_dir = row[1];
- //GLib.debug("msgid %s", row[2]);
-
- this.used_space_after += file_size;
- if (StripApplication.opt_is_extracting) {
- target_fn = StripApplication.opt_target_path + "/" + this.created_dir +"/"+ file_id + "-" + filename;
- }
+ file_id = row[0];
- } else {
+
+ GLib.debug("fn = %s, m5=%s, id= %s", filename, mime_type, this.active_message_id);
+ this.query("""
- 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_created DATETIME,
'%s', -- in_mailfort_sig varchar(64)
) as result
- """.printf(
-
- this.mysql_escape(this.active_message_exim_id), this.mysql_escape(this.active_message_x_mailfort_sig),
- "",
- "attachment",
- 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.created_date, // delivered (from lookup)
-
- chksum,
- file_size,
- "", // filled in after we find out the id..
-
- this.created_date,
- this.mysql_escape(filename),
- this.mysql_escape(mime_type)
-
+ """.printf(
+ int.parse(file_id),
+ this.mysql_escape(mime_type),
+ this.created_date
+ this.mysql_escape(this.active_message_x_mailfort_sig)
+ ));
+
+