home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / headers / 222 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.9 KB  |  71 lines

  1. Newsgroups: comp.mail.headers
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!naggum.no
  3. From: Erik Naggum <erik@naggum.no>
  4. Organization: Naggum Software, Oslo, Norway
  5. Message-ID: <23256C@erik.naggum.no>
  6. Date: 23 Jul 1992 23:39:06 +0200
  7. References: <4580@daily-planet.concordia.ca>
  8. Subject: Re: Is this RFC822 example illegal?
  9. Lines: 55
  10.  
  11. Gary Katch <gpkatch@alcor.concordia.ca> writes:
  12. |
  13. |   Sorry, I an reposting, last message got mangled.
  14. |
  15. |   I was looking at the syntax of In-Reply-To and References in
  16. |   RFC822.  Here are the relevant parts:
  17. |   --------
  18. |        optional-field =
  19. |        [...]
  20. |                    /  "In-Reply-To"       ":"  *(phrase / msg-id)
  21. |                    /  "References"        ":"  *(phrase / msg-id)
  22. |        [...]
  23. |        phrase      =  1*word                       ; Sequence of words
  24. |        word        =  atom / quoted-string
  25. |        quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
  26. |        atom        =  1*<any CHAR except specials, SPACE and CTLs>
  27. |        specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
  28. |                    /  "," / ";" / ":" / "\" / <">  ;  string, to use
  29. |                    /  "." / "[" / "]"              ;  within a word.
  30. |
  31. |        [Example]
  32. |        A.3.3.  About as complex as you're going to get
  33. |        [...]
  34. |        In-Reply-To: <some.string@DBM.Group>, George's message
  35. |   -----------------------------------------^
  36. |
  37. |   Given that only phrases or message-id's can appear in the
  38. |   field-body, and that phrases are made of words and words of atoms,
  39. |   and an atom cannot be a special, then the comma following
  40. |   the address in the example is illegal, right?
  41. |
  42. |   Further, one could put neither addresses nor dates in the field-body
  43. |   unless these strings are quoted  (there is "." and "@" in addresses,
  44. |   and ":" and "," in dates).
  45.  
  46. Ignore this syntax specification, and treat it as if it said
  47.  
  48.     *(<any CHAR except "<" and ">" / msg-id)
  49.  
  50. which is to say that if there are paired delimiters ("<", ">") in there,
  51. they probably delimit a message-id, and hopefully not some other
  52. non-sense.
  53.  
  54. I have an automatic mail-threader, which attempts to intuit which
  55. message something is a reply to based on several distorted forms of
  56. "user friendliness" in the In-Reply-To field, and I have to add a rule
  57. once a week or so.  Especially people on BITNET, who don't even know
  58. about message ID's to begin with, and people who use ELM, which screws
  59. up the date format, and _lose_ the time zone information.
  60.  
  61. References is usually uncontaminated by such user friendliness, though,
  62. and the effective specification is a list of message-ids.
  63.  
  64. Best regards,
  65. </Erik>
  66. --
  67. Erik Naggum             |  ISO  8879 SGML     |
  68.                         |  ISO 10744 HyTime   |
  69. +47-295-0313            |  ISO 10646 UCS      |      Memento, terrigena.
  70. <erik@naggum.no>        |  ISO  9899 C        |      Memento, vita brevis.
  71.