9 date 95.12.06.19.20.22; author jromine; state Exp;
14 date 95.12.06.19.18.19; author jromine; state Exp;
28 @/* taken straight from the MIME specification, to use with multi-media MH, do:
30 mhn-show-text/richtext: rt2raw < %f | fmt -78 | more
34 Note that MTR doesn't use this program. He uses NB's richtext program
35 instead (the one that comes with MetaMail). See RICHTEXT.setup for the
45 while((c = getc(stdin)) != EOF) {
47 for (i=0; (c = getc(stdin)) != '>'
49 token[i] = isupper(c) ? tolower(c) : c;
53 if (!strcmp(token, "lt")) {
55 } else if (!strcmp(token, "nl")) {
57 } else if (!strcmp(token, "/paragraph")) {
59 } else if (!strcmp(token, "comment")) {
62 while ((c = getc(stdin)) != '<'
65 for (i=0; (c = getc(stdin)) != '>'
67 token[i] = isupper(c) ?
72 if (!strcmp(token, "/comment")) --commct;
73 if (!strcmp(token, "comment")) ++commct;
75 } /* Ignore all other tokens */
76 } else if (c != '\n') {
78 } else putc (' ', stdout);
80 putc('\n', stdout); /* for good measure */