X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlistsbr.c;h=1777cf4bfad92824d49b3ea3e4ba055d581f1bc5;hp=9cd331a86068ab0079e2d06e56417176ed0c4681;hb=55e1d8c654ee0f7c45b9361ce34617983b454c32;hpb=c164fa6824a65205d96c9d1450dc656bec66553a diff --git a/uip/mhlistsbr.c b/uip/mhlistsbr.c index 9cd331a..1777cf4 100644 --- a/uip/mhlistsbr.c +++ b/uip/mhlistsbr.c @@ -36,7 +36,6 @@ static void list_single_message(CT, int, int, int); 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); @@ -106,22 +105,12 @@ list_switch(CT ct, int toplevel, int realsize, int verbose, int debug) 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; @@ -205,7 +194,7 @@ list_content(CT ct, int toplevel, int realsize, int verbose, int debug) 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); } /* @@ -346,54 +335,6 @@ list_partial(CT ct, int toplevel, int realsize, int verbose, int debug) /* -** 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. */