fix case no "content-type" => do nothing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user