[NNTP] Snapshot 5

Russ Allbery rra at stanford.edu
Wed Jan 5 12:13:28 PST 2005


Clive D W Feather <clive at demon.net> writes:

> Actually there would be more hassle, because now we'd be restricting the
> form of capability line arguments. At present the parsing is:

>     * Split line into tokens on white space.
>   #if understand-modifiers
>     * While (first token begins with non-alphanumeric)
>       - First token is a modifier;
>       - if known, process it and remove from list of tokens
>         else ignore entire line
>   #else
>     * If (first token begins with non-alphanumeric)
>       - ignore entire line
>   #endif
>     * If (first token begins with digit)
>       - error
>     * First token is capability label. Process it and remove from the list.
>     * While (tokens remain)
>       - process token as argument to label.

Exactly... this was why I didn't like comments -- it inserted an
additional step of peeling the comment off the front that had to be done
even for clients that didn't understand or care about modifiers.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the ietf-nntp mailing list