projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4377008
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 4 May 2018 05:35:08 +0000
(13:35 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 4 May 2018 05:35:08 +0000
(13:35 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
48a78ae
..
bcc259d
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-356,7
+356,23
@@
public class Strip : GLib.Object {
// initialize it with known data..
// that should wipe out dupes.
-
+ this.query("""
+ SELECT
+
+ attachment_init(
+ msgid,
+ checksum,
+ mime_filename,
+ filesize
+ ) as id
+ FROM
+ attachment
+ WHERE
+ id = %d
+
+ """.printf(
+ int.parse(sid)
+ ));
this.query("""
SELECT attachment_update(
%d, -- in_id INT(11),