X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2Fstrip.vala;h=ca947c0ae6906611ce0ce613e609fc54036001a8;hb=6d62a0448bae60216b3cb0490ee48fe8d408f6b8;hp=60f7a70bcdc58ff5ff66b44f3c71cf0963de2380;hpb=779c88f2e7b5b338dbfc4593e2ec6ee3d08b73ef;p=app.mailtrimmer diff --git a/src/strip.vala b/src/strip.vala index 60f7a70..ca947c0 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -444,6 +444,13 @@ public class Strip : GLib.Object { var filename = attachment.get_header("X-strip-content-name"); var file_path = attachment.get_header("X-strip-path"); var fn = StripApplication.opt_target_path + "/" + file_path; + + + if (!FileUtils.test (fn, FileTest.EXISTS)) { + GLib.debug("SKIP -- file does not exist"); + return; + } + var chksum = this.md5_file(fn); var mime_type = attachment.get_header("X-strip-content-type"); @@ -452,9 +459,6 @@ public class Strip : GLib.Object { ,GLib.FileQueryInfoFlags.NONE,null); var file_size = (int) fileinfo.get_size(); - if (!FileUtils.test (fn, FileTest.EXISTS)) { - GLib.debug("SKIP -- file does not exist"); - } this.real_query(-1, """