home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!uunet.ca!geac!alias!chk
- From: chk@alias.com (C. Harald Koch)
- Subject: MIME Content-Type: problem (elm2.4pl8)
- Message-ID: <1992Nov18.153935.937@alias.com>
- Sender: news@alias.com (News Owner)
- Organization: Alias Research, Inc., Toronto ON Canada
- Date: Wed, 18 Nov 1992 15:39:35 GMT
- Lines: 39
-
- I just received a MIME message from the IETF mailing list with a valid Content-Type:
-
- Content-Type: text/plain; charset="us-ascii"
-
- elm doesn't like the quotes. It decides that the character set "us-ascii" is
- unknown, and passes the message to metamail.
-
- According to the MIME BNF, quoted strings are allowed in the value portion
- of a parameter.
-
- The fix is in the routine notplain() in mime.c; The ELM group probably has a
- fancy way to handle quoted strings, but I don't know what it is, so I simply
- used the following patch:
-
- *** /tmp/,RCSt1a15518 Wed Nov 18 10:38:36 1992
- --- mime.c Wed Nov 18 10:24:31 1992
- ***************
- *** 270,276 ****
- s = (char *) index(t, '=');
- if (s) {
- ++s;
- ! while (*s && isspace(*s)) ++s;
- if (!strincmp(s, display_charset, strlen(display_charset)))
- return(0);
- if (!strincmp(s, "us-ascii", 8)) {
- --- 267,273 ----
- s = (char *) index(t, '=');
- if (s) {
- ++s;
- ! while (*s && (isspace(*s) || *s == '\"')) ++s;
- if (!strincmp(s, display_charset, strlen(display_charset)))
- return(0);
- if (!strincmp(s, "us-ascii", 8)) {
-
- --
- Main's Law: For every | C. Harald Koch Alias Research, Inc. Toronto, ON
- action, there is an equal | chk@alias.com (work-related mail)
- and opposite goverment | chk@gpu.utcs.utoronto.ca (permanent address)
- program. | VE3TLA@VE3OY.#SCON.ON.CA.NA (AMPRNet)
-