home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / mail / elm / 3372 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.8 KB  |  50 lines

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