TIP: Click on subject to list as thread! ANSI
echo: jamnntpd
to: All
from: Carlos Navarro
date: 2024-02-08 21:47:00
subject: dots

I think I managed to fix the issues that Smapi/JamNNTPd have with lines starting with a dot.

.
..
...

Edit nntpserv.c and make these two changes:

1. Replace this:

      if(stricmp(buf,".")==0) /* "." means end of message in NNTP */
         strcpy(buf,"..");

   by this:

      if(buf[0]=='.')
         memmove(buf+1,buf,strlen(buf)+1);

2. Insert this:

         if(line[0]=='.')
            memmove(line,line+1,strlen(line));

   just before this:

         if(textpos + strlen(line) > POST_MAXSIZE-1)


Carlos

--- Mozilla Thunderbird
                                                        
* Origin: cyberiada-NNTP (2:341/234.99)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.