]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
faxmail: print an error message when a part is discarded
authorAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:32:23 +0000 (20:32 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:32:23 +0000 (20:32 +0000)
| commit 8e9d78dcafdde09455b42c55f9f5bfa4f762d355
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Tue Oct 2 00:32:35 2007 +0000
|
|     output an error message if a part is discarded

faxmail/faxmail.c++

index 716578944071ba20a4df741995361b5c990a37fd..678f88e4547e64c3643267abc042d6808f00ff4b 100644 (file)
@@ -679,6 +679,15 @@ faxMailApp::formatDiscarded(MIMEState& mime)
        format((const char*)buf, buf.getLength());
        empty = false;
     }
+    if (mime.getDescription() != "")
+       fprintf(stderr, "DISCARDED: %s (%s/%s)\n",
+           (const char*) mime.getDescription(),
+           (const char*) mime.getType(),
+           (const char*) mime.getSubType());
+    else
+       fprintf(stderr, "DISCARDED: %s/%s\n",
+           (const char*) mime.getType(),
+           (const char*) mime.getSubType());
 }
 
 /*