[H-GEN] Interpretation of RFC822

Jason Parker-Burlingham jasonp at uq.net.au
Mon Oct 7 17:28:16 EDT 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

"Everist, Geoff" <everistg at switch.aust.com> writes:

> Just out of interest, herewith the relevant syntax rules:
> 
> authentic   =   "From"       ":"   mailbox  ; Single author
> mailbox     =  addr-spec                    ; simple address
>                /  phrase route-addr         ; name & addr-spec
> phrase      =  1*word                       ; Sequence of words
> word        =  atom / quoted-string
> quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
>                                             ;   quoted chars
> qtext       =  <any CHAR excepting <">,     ; => may be folded
>                "\" & CR, and including
>                     linear-white-space>
> quoted-pair =  "\" CHAR                     ; may quote any char
> route-addr  =  "<" [route] addr-spec ">"
> route       =  1#("@" domain) ":"           ; path-relative
> addr-spec   =  local-part "@" domain        ; global address
> 
> The rest should be fairly obvious. I think the interesting bit is the 
> meaning of 1*word, and how this implies a space must follow if phrase is 
> only one word.

As Greg points out, the syntax has been superseded, but I wonder if it
would be correct to argue that the space is implied in the "mailbox"
rule, the space being required to separate the phrase from the
route-addr.  I seem to recall that a lot of grammars play pretty fast
and loose with whitespace.

> If this email actually makes it to the list without listmom having
> to interfere, then it will prove that Majordomo is expecting a space
> between the phrase and the route-addr :-)

As I said to Greg, I think this is more to do with Majordomo being
hacked up in godawful Perl than with Majordomo parsing RFC-compliant
addresses to the letter of the law.
-- 
||----|---|------------|--|-------|------|-----------|-#---|-|--|------||
| ``Ooooaah!                                                            |
|   I'm getting so excited about cheese-making I can't stand it!''      |
||--|--------|--------------|----|-------------|------|---------|-----|-|

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list