🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #72147

Re: GNKSA questions (Noworyta News Reader)

#72147
From: Jeroen Scheerder
Date: Fri, 16 Feb 2001 08:20
93 lines
4613 bytes
Filip Noworyta <filnow@kki.net.pl>:

> I want my newsreader to be GNKSA compliant soon. [..]

Good for you, and good for the rest of us too.

[...]

> 7) Make sure followups contain valid References
>    [N] b) Includes last three References from original (M)
>    [N] c) Ensures References will fit in 998 characters (M)
>    [N] d) Keep as many References from original as fit  (S)
>    [N] e) Does not propagate broken Message-IDs in original
> References (S)
> 
> Maybe this can be a solution: if (this is really rare situation) the
> references line is longer than 998 characters, the newsreader will
> take only the first M-ID and the last three? It will be much easier to
> implement.

It's a mimimal solution.  You'll fail on the SHOULD that is 7d.

It's actually not *that* hard to implement.  In a high-level language
you typically use high-level string (or pattern matching) constructs.
In a low-level language the fact that you can do it "in place" (since
you'll only remove mids) helps a lot.

pcode:

    if refhdrtoolong(refhdr) {
        second = skipfirstone(refhdr)
        while refhdrtoolong(refhdr) {
            removeonemsgid(second)
        }
    }

The "refhdrtoolong" and "skipfirstone" and "removeonemsgid" functions
shouldn't be too hard, although you should take some care in that last
one to make sure it keeps a duplicate space around where msids are
dropped, and that it never removes the last msgid.

Things also get a lot simpler if you remove any broken msgids (as per
7e) first; actually, writing a routine that checks whether or not a
given msgid is syntactically correct may be a bit tougher than expected.

> 12) Provide a valid "From: " header
>     [N] a) Sets "From: " header to syntactically valid e-mail address
> (M)
>     [N] b) Refuses posting articles without a syntactically valid
> "From: " header (M)
> 
> "From: " header has two parts. The first part is a user name, the
> second his (or her? how is it in English?) e-mail. As in the example:
> 
> admin <admin@localhost>
> --1-- --------2--------
> 
> Both parts are entered seperately. Am I right that the only thing to
> do is to check for '@' in the second part? As you can see in the
> example above, the '.' is not needed.

You may want to reread that bit of the RFCs.  They define it better, and
in more detail, than I can do in a few lines of a usenet articles.

A few observations/rules of thumb:

    - from header content may have two parts:
        1.  Comment (typically the real name)
        2.  Address
      these can be notated in two formats:
        a.  Comment <Address>
        b.  Address (Comment)
      although a from header without comment, or with empty content:
        a.  <Address>
        b.  Address
      is also valid
    - charset restrictions: ANSI X3.4 only in Address and Comment
      (special stuff in Comment is handled by quoted-printable
      encoding); there may or not be a readon to be lax on the
      charset constraints in the Comment bit
    - Address is UserId@Do.Main.Name, where Do.Main.Name must be
      a fully qualified domain name (or the equivalent of one,
      i.e. in dotted-quad notation, as in "me@[131.144.132.7]"
      You're not likely to run into dotted quads very often.

> All other MUSTS (I hope!) and many SHOULDS are "Y". In a few days I
> should make my newsreader GNKSA compliant. [..]

Congratulations.  I see you already have testing volunteers, even.


    -- J$
Technical Details
Message-ID: <1eowzjh.syj5m47vz1fgN@gnksa.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.165.93.117!newsfeed.wirehub.nl!surfnet.nl!ruu.nl!phil.uu.nl!js
References: <96h44a$l0j9k$1@ID-70408.news.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <1eowzjh.syj5m47vz1fgN@gnksa.org>
Subject: Re: GNKSA questions (Noworyta News Reader)
Date: Fri, 16 Feb 2001 09:20:39 +0100
From: js@phil.uu.nl (Jeroen Scheerder)
References: <96h44a$l0j9k$1@ID-70408.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.165.93.117!newsfeed.wirehub.nl!surfnet.nl!ruu.nl!phil.uu.nl!js
Newsgroups: news.software.readers
Organization: Al-Munqidh min-al-Dalaal
Lines: 92
Sender: js@20dyn100.utr.casema.net
NNTP-Posting-Host: 20dyn100.utr.casema.net
X-Trace: husserl.admin.phil.uu.nl 982311644 3227 213.17.11.100 (16 Feb 2001 08:20:44 GMT)
X-Complaints-To: abuse@phil.uu.nl
NNTP-Posting-Date: 16 Feb 2001 08:20:44 GMT
Mail-Copies-To: nobody
X-Face: (u%,<Ek_K4]BW;*pmlV&,Ev+p0W0hHt,PZs7\2OV%HhTE5\$\MU79J|bQB_m3G"n,Mz'Pb6*(Z~Wr\GkY`X<!RfA0%7R
User-Agent: MacSOUP/2.4.6