projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
803f891
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 07:31:31 +0000
(15:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 29 Jun 2018 07:31:31 +0000
(15:31 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
c3fd8fc
..
5b55d52
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-368,6
+368,17
@@
public class Strip : GLib.Object {
return;
}
return;
}
+ // initialize it with known data..
+ // that should wipe out dupes.
+ var matches = this.execute("SELECT count(id) FROM Attachment WHERE id = %d".printf(
+ int.parse(sid)));
+
+ if (matches=="0") {
+ GLib.error("Failed to find id :%s", sid);
+ return;
+ }
+
+
// initialize it with known data..
// that should wipe out dupes.
var filesize = this.execute("SELECT filesize FROM Attachment WHERE id = %d".printf(
// initialize it with known data..
// that should wipe out dupes.
var filesize = this.execute("SELECT filesize FROM Attachment WHERE id = %d".printf(