I have found a minor bug in the way errors in header parameters are
reported. The error occurs when c-client encounters a header line like:
Content-Disposition: attachment; filename="image5.jpg";
In this case c-client will report: "Missing parameter value: FILENAME"
instead of "Missing parameter". The easiest fix I could think of is:
--- src/c-client/rfc822.c 8 Jun 2005 04:58:32 -0000 1.21
+++ src/c-client/rfc822.c 16 Nov 2005 06:20:41 -0000
@@ -878,7 +878,7 @@
}
}
if (!text) { /* must be end of poop */
- if (param && param->attribute)
+ if (param && param->attribute && param->value == NIL)
sprintf (tmp,"Missing parameter value: %.80s",param->attribute);
else strcpy (tmp,"Missing parameter");
MM_LOG (tmp,PARSE);
/MaF
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw