static int list_debug(CT);
static int list_multi(CT, int, int, int, int);
static int list_partial(CT, int, int, int, int);
-static int list_external(CT, int, int, int, int);
static int list_encoding(CT);
break;
case CT_MESSAGE:
- switch (ct->c_subtype) {
- case MESSAGE_PARTIAL:
+ if (ct->c_subtype == MESSAGE_PARTIAL) {
return list_partial(ct, toplevel, realsize, verbose,
debug);
- break;
-
- case MESSAGE_EXTERNAL:
- return list_external(ct, toplevel, realsize, verbose,
- debug);
- break;
-
- case MESSAGE_RFC822:
- default:
+ } else {
return list_content(ct, toplevel, realsize, verbose,
debug);
- break;
}
break;
CI ci = &ct->c_ctinfo;
for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) {
- printf("\t %s=\"%s\"\n", *ap, *ep);
+ printf("\t\t%s=\"%s\"\n", *ap, *ep);
}
/*
ct->c_type, ct->c_subtype,
(unsigned int)(unsigned long) ct->c_ctparams);
+ fprintf(stderr, " charset \"%s\"\n", empty(ct->c_charset));
fprintf(stderr, " showproc \"%s\"\n", empty(ct->c_showproc));
- fprintf(stderr, " termproc \"%s\"\n", empty(ct->c_termproc));
fprintf(stderr, " storeproc \"%s\"\n", empty(ct->c_storeproc));
/* print transfer encoding information */
/*
-** list content information for type "message/external"
-*/
-static int
-list_external(CT ct, int toplevel, int realsize, int verbose, int debug)
-{
- struct exbody *e = (struct exbody *) ct->c_ctparams;
-
- /*
- * First list the information for the
- * message/external content itself.
- */
- list_content(ct, toplevel, realsize, verbose, debug);
-
- if (verbose) {
- if (e->eb_name)
- printf("\t name=\"%s\"\n", e->eb_name);
- if (e->eb_dir)
- printf("\t directory=\"%s\"\n", e->eb_dir);
- if (e->eb_site)
- printf("\t site=\"%s\"\n", e->eb_site);
- if (e->eb_server)
- printf("\t server=\"%s\"\n", e->eb_server);
- if (e->eb_subject)
- printf("\t subject=\"%s\"\n", e->eb_subject);
-
- /* This must be defined */
- printf("\t access-type=\"%s\"\n", e->eb_access);
-
- if (e->eb_mode)
- printf("\t mode=\"%s\"\n", e->eb_mode);
- if (e->eb_permission)
- printf("\t permission=\"%s\"\n", e->eb_permission);
-
- if (e->eb_flags == NOTOK)
- printf("\t [service unavailable]\n");
- }
-
- /*
- ** Now list the information for the external content
- ** to which this content points.
- */
- list_content(e->eb_content, 0, realsize, verbose, debug);
-
- return OK;
-}
-
-
-/*
** list information about the Content-Transfer-Encoding
** used by a content.
*/