From bdddf71698a63d051859537fc80b44a9bacda711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Thu, 16 Apr 2026 15:56:54 +0200 Subject: [PATCH] fix case no "content-type" => do nothing --- src/cpp/eMailShrinker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/eMailShrinker.cpp b/src/cpp/eMailShrinker.cpp index 5a5bdf3..03ea6b0 100644 --- a/src/cpp/eMailShrinker.cpp +++ b/src/cpp/eMailShrinker.cpp @@ -193,10 +193,10 @@ main (int argc, char** argv) { MainAttachment attachment (mbox); mbox.close (); - // if (attachment.getBoundary ().empty ()) { - // cerr << "no attachment" << endl; - // return 1; - // } + if (attachment.getBoundary ().empty ()) { + cerr << "no attachment" << endl; + return 1; + } // parse structure mbox.open (inputName); attachment.markSignificant (minAttachSize, mbox);