🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Russell Schulz Wed, 06 Apr 1994 03:21
Re: Zero tolerance for bad Usenet software?
#8356
Author: Russell Schulz
Date: Wed, 06 Apr 1994 03:21
68 lines
3419 bytes
(RFD: comp.mail.user-agents)

nelson@reed.edu (Nelson Minar) writes:

> Also, a lot of sites seem to pass on posts where the From: header is
> not even a valid email address ("From: \/aliscafo\/", for instance).
> I'm not sure how hard it is to guess whether it follows the form of a
> valid email address without checking to see if the address is
> deliverable, which is too much work.

here's what I check:

  if
      (numoccur('.',node)=0)
   or
      (numoccur('@',newsfrom)<>1)
   or
      (numoccur('@',mailfrom)>1)
   or
      (numoccur('@',replyto)>1)
   or
      (
        (numoccur('@',mailfrom)=0) and (numoccur('!',mailfrom)=0)
      )
   or
      (
        (numoccur('(',newsfrom)>0) and
          (
               (numoccur('(',newsfrom)<>1)
            or (numoccur(')',newsfrom)<>1)
            or (numoccur('<',newsfrom)<>0)
            or (numoccur('>',newsfrom)<>0)
          )
      )

   then

    begin
      xwritelns('invalid node: or netmail:/netnews:/replyto: static entry');
      xwritelns('  the node entry needs at least one "."');
      xwritelns('  the netmail entry needs one "@" and/or at least one "!"');
      xwritelns('  the netnews entry needs one "@"');
      xwritelns('  the netnews entry cannot have any of ()<> inside the ()');
      xwritelns('  the replyto entry (if any) can have at most one "@"');
      xwriteln;
      xwritelns('current settings:');
      xwritelnss('  node:     ',node);
      xwritelnss('  newsfrom: ',newsfrom);
      xwritelnss('  mailfrom: ',mailfrom);
      xwritelnss('  replyto:  ',replyto);
      shutdown(1);
    end;

note that for news, a '@' is required (to prevent B-News mangling).
I just added the checking for ()<> in the From this past week or so.

winqvt seems to do no checking, but I haven't found an email address
for the maintainer yet (that I recorded, anyway -- I don't know if
I bothered to ftp the whole package for one piece of mail).

I welcome others' comments on simple things like this I can do to
make the postings trivially compliant.  is there a FBTT list
(frequently bungled trivial things) for newsreaders/mail agents?

we have news.software.readers, but no comp.mail.user-agents?
-- 
Russell Schulz  russell@alpha3.ersys.edmonton.ab.ca  ersys!rschulz  Shad 86c
Re: Zero tolerance for bad Usenet software?
#8425
Author: Larry W. Virden
Date: Sun, 10 Apr 1994 06:37
8 lines
1509 bytes
I sure wish trn had something that would help me fix up postings before handing
them off to inews.  Right now I have one posting I have tried to make for 6 months
but c/news keeps tossing it without explanation to me.
-- 
:s Great net resources sought...
:s Larry W. Virden                 INET: lvirden@cas.org
:s Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
The task of an educator should be to irrigate the desert not clear the forest.
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