
cph at oce
Jan 26, 2003, 6:39 AM
Post #2 of 3
(898 views)
Permalink
|
Paul, Just downloaded and tested the new version, and its looking good. I have just discovered another minor problem though. I am using ripmime with qmail-scanner, which doesn't like any output on stdout, and there are a couple of places in mime.c where it writes to stdout, even if you haven't turned on debugging. I have included a patch below to correct this. I don't think I've screwed anything up, but let me know if I have. Chris --- mime.c.orig Sun Jan 26 13:03:18 2003 +++ mime.c Sun Jan 26 13:30:37 2003 @@ -1569,7 +1569,7 @@ { if (strcasecmp(hinfo->uudec_name,"winmail.dat")==0) { - fprintf(stdout,"Decoding TNEF format\n"); + if (MIME_DNORMAL) fprintf(stdout,"Decoding TNEF format\n"); snprintf(hinfo->filename, 128, "%s", hinfo->uudec_name); MIME_decode_TNEF( unpackdir, hinfo, keep); } @@ -1715,7 +1715,7 @@ if (strncasecmp(hinfo->uudec_name,"winmail.dat",11)==0) { - fprintf(stdout,"Decoding TNEF format\n"); + if (MIME_DNORMAL) fprintf(stdout,"Decoding TNEF format\n"); snprintf(hinfo->filename, 128, "%s", hinfo->uudec_name); MIME_decode_TNEF( unpackdir, hinfo, keep ); } @@ -2273,7 +2273,7 @@ // If the calling program requested verbosity, then indicate that we're decoding // the file here - if ((keep)&&(glb.verbosity)) fprintf(stdout,"Decoding %s\n", hinfo->filename); + if (((keep)&&(glb.verbosity))&&(MIME_DNORMAL)) fprintf(stdout,"Decoding %s\n", hinfo->filename); // Select the decoding method based on the content transfer encoding
|