- i = strlen (invo_name) + 2;
-
- /* Now add content type and subtype */
- snprintf (bp, buflen, "\n%*.*s(content %s/%s", i, i, "",
- ci->ci_type, ci->ci_subtype);
- len = strlen (bp);
- bp += len;
- buflen -= len;
+ /* Now add the message/part number */
+ if (ct->c_file) {
+ snprintf (bp, buflen, " in message %s", ct->c_file);
+ len = strlen (bp);
+ bp += len;
+ buflen -= len;
+
+ if (ct->c_partno) {
+ snprintf (bp, buflen, ", part %s", ct->c_partno);
+ len = strlen (bp);
+ bp += len;
+ buflen -= len;
+ }
+ }