home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   JAMNNTPD      Support for the JAMNNTPD software client      2,630 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,411 of 2,630   
   Anton Shepelev to Anton Shepelev [Guest]    
   Response to the LIST command   
   11 Jul 16 00:33:50   
   
   I wrote:   
   AS>          sockprintf( var, "%s %lu %lu %c" CRLF, g->tagname, max, min,   
   AS> matchFlag );   
      
   Sorry  for  the  broken  line.   The tin newsreaders   
   wraps text by default.  Should be all right now:   
      
   void command_list( struct var *var )   
   {  struct group *g;   
      ulong min,max,num;   
      uchar *arg;   
      uchar matchFlag;   
      bool listnewsgroups;   
      [...]   
      for( g = var->firstgroup; g != NULL; g = g->next )   
      {  if( var->disconnect || get_server_quit() )   
         {  break;  } // separate exceptional conditions from list exhaustion   
         if( !matchgroup( var->readgroups, g->group ) )   
         {  continue;  } // coninue reduces the nesting of if statements   
         if( listnewsgroups )   
         {  sockprintf( var, "%s " CRLF, g->tagname );  }   
         else // TODO: if min, max, and num go together, wrap them into struct   
         {  if( !jamgetminmaxnum( var, g, &min, &max, &num) )   
            {  min = 0; max = 0; num = 0;  }   
            matchFlag = matchgroup( var->postgroups, g->group ) ? 'y' : 'n';   
            sockprintf( var, "%s %lu %lu %c" CRLF, g->tagname, max, min,   
   matchFlag );   
         }   
      }   
      // Strange: this will be called even after disconnect or server_quit:   
      socksendtext(var,"." CRLF);   
   }   
      
   ---   
    * Origin: *** nntp://fidonews.mine.nu *** Finland *** (2:221/6.0)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca