src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 May 2018 09:33:12 +0000 (17:33 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 May 2018 09:33:12 +0000 (17:33 +0800)
src/strip.vala

index 458d754..abbae8c 100644 (file)
@@ -304,7 +304,7 @@ public class Strip : GLib.Object {
     public void replace_attachment(GMime.Multipart parent, GMime.Part attachment)
     {
         var sid = attachment.get_header("X-strip-id");
-        if (sid != null && sid.length) {
+        if (sid == null || sid.length < 1) {
                GLib.debug("Skip attachment replace - it's already been done");
                return;
        }