fix case no "content-type" => do nothing

This commit is contained in:
2026-04-16 15:56:54 +02:00
parent 430317c1b9
commit bdddf71698
+4 -4
View File
@@ -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);