🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mail.headers
4 messages
4 total messages Started by Gary Katch Thu, 23 Jul 1992 14:25
Is this RFC822 example illegal?
#10
Author: Gary Katch
Date: Thu, 23 Jul 1992 14:25
34 lines
2019 bytes
Sorry, I an reposting, last message got mangled.

I was looking at the syntax of In-Reply-To and References in
RFC822.  Here are the relevant parts:
--------
     optional-field =
     [...]
                 /  "In-Reply-To"       ":"  *(phrase / msg-id)
                 /  "References"        ":"  *(phrase / msg-id)
     [...]
     phrase      =  1*word                       ; Sequence of words
     word        =  atom / quoted-string
     quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
     atom        =  1*<any CHAR except specials, SPACE and CTLs>
     specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
                 /  "," / ";" / ":" / "\" / <">  ;  string, to use
                 /  "." / "[" / "]"              ;  within a word.

     [Example]
     A.3.3.  About as complex as you're going to get
     [...]
     In-Reply-To: <some.string@DBM.Group>, George's message
-----------------------------------------^

Given that only phrases or message-id's can appear in the
field-body, and that phrases are made of words and words of atoms,
and an atom cannot be a special, then the comma following
the address in the example is illegal, right?

Further, one could put neither addresses nor dates in the field-body
unless these strings are quoted  (there is "." and "@" in addresses,
and ":" and "," in dates).

-- gk
Re: Is this RFC822 example illegal?
#11
Author: Barry Margolin
Date: Thu, 23 Jul 1992 20:52
19 lines
1183 bytes
In article <4580@daily-planet.concordia.ca> Gary Katch <gpkatch@alcor.concordia.ca> writes:
>                 /  "In-Reply-To"       ":"  *(phrase / msg-id)
...
>     In-Reply-To: <some.string@DBM.Group>, George's message
>
>Given that only phrases or message-id's can appear in the
>field-body, and that phrases are made of words and words of atoms,
>and an atom cannot be a special, then the comma following
>the address in the example is illegal, right?

I think the example is OK.  It's a msg-id followed by a phrase.  The "*"
prefix in the syntax means that there can be any number of phrases and
msg-ids, delimited by commas.

-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Re: Is this RFC822 example illegal?
#12
Author: Erik Naggum
Date: Thu, 23 Jul 1992 21:39
60 lines
3003 bytes
Gary Katch <gpkatch@alcor.concordia.ca> writes:
|
|   Sorry, I an reposting, last message got mangled.
|
|   I was looking at the syntax of In-Reply-To and References in
|   RFC822.  Here are the relevant parts:
|   --------
|        optional-field =
|        [...]
|                    /  "In-Reply-To"       ":"  *(phrase / msg-id)
|                    /  "References"        ":"  *(phrase / msg-id)
|        [...]
|        phrase      =  1*word                       ; Sequence of words
|        word        =  atom / quoted-string
|        quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
|        atom        =  1*<any CHAR except specials, SPACE and CTLs>
|        specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
|                    /  "," / ";" / ":" / "\" / <">  ;  string, to use
|                    /  "." / "[" / "]"              ;  within a word.
|
|        [Example]
|        A.3.3.  About as complex as you're going to get
|        [...]
|        In-Reply-To: <some.string@DBM.Group>, George's message
|   -----------------------------------------^
|
|   Given that only phrases or message-id's can appear in the
|   field-body, and that phrases are made of words and words of atoms,
|   and an atom cannot be a special, then the comma following
|   the address in the example is illegal, right?
|
|   Further, one could put neither addresses nor dates in the field-body
|   unless these strings are quoted  (there is "." and "@" in addresses,
|   and ":" and "," in dates).

Ignore this syntax specification, and treat it as if it said

	*(<any CHAR except "<" and ">" / msg-id)

which is to say that if there are paired delimiters ("<", ">") in there,
they probably delimit a message-id, and hopefully not some other
non-sense.

I have an automatic mail-threader, which attempts to intuit which
message something is a reply to based on several distorted forms of
"user friendliness" in the In-Reply-To field, and I have to add a rule
once a week or so.  Especially people on BITNET, who don't even know
about message ID's to begin with, and people who use ELM, which screws
up the date format, and _lose_ the time zone information.

References is usually uncontaminated by such user friendliness, though,
and the effective specification is a list of message-ids.

Best regards,
</Erik>
--
Erik Naggum             |  ISO  8879 SGML     |
                        |  ISO 10744 HyTime   |
+47-295-0313            |  ISO 10646 UCS      |      Memento, terrigena.
<erik@naggum.no>        |  ISO  9899 C        |      Memento, vita brevis.
Re: Is this RFC822 example illegal?
#13
Author: Alan P Barrett
Date: Fri, 24 Jul 1992 07:00
19 lines
1283 bytes
barmar@think.com (Barry Margolin) writes:
> I think the example is OK.  It's a msg-id followed by a phrase.  The "*"
> prefix in the syntax means that there can be any number of phrases and
> msg-ids, delimited by commas.

The "*" prefix means any number of items _not_ separated by commas; the
"#" prefix means that they are separated by commas.  The example --

     In-Reply-To: <some.string@DBM.Group>, George's message

in RFC 822 section A.3.3 is inconsistent with the syntax --

                 /  "In-Reply-To"       ":"  *(phrase / msg-id)

in section D.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za             Bang: m2xenix!quagga!undeed!barrett
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads