TIP: Click on subject to list as thread! ANSI
echo: jamnntpd
to: Carlos Navarro
from: Tommi Koivula
date: 2024-01-28 10:02:00
subject: Re: Test

On 27.01.2024 21:23, Carlos Navarro wrote:

> This may be a possible way to fix the corrupted From field in headers:
> in nntpserv.c, instead of just removing this line:
>
>   strcpy(mimefrom,&mimefrom[6]);
>
> Replace it by:
>
>   memmove(mimefrom,mimefrom+6,strlen(mimefrom)-5);
>
> There could also be issues with the Subject field. The next line:
>
>   strcpy(mimesubj,&mimesubj[9]);
>
> could be changed to:
>
>   memmove(mimesubj,mimesubj+9,strlen(mimesubj)-8);
>
> As for the corruption in the body of messages posted with newsreaders
> that support flowed text (like Thunderbird), I think it may be fixed by
> changing this:
>
>   strcpy(line,&line[1]);
>
> to this:
>
>   memmove(line,line+1,strlen(line));
>
> These patches are for both JamNNTPd and SmapiNNTPd.

Patched both, and so far so good.

If anyone wants to test, there are few open groups :

 jamnntpd:    mxo.fidonet.fi:119
 smapinntpd:  mxo.fidonet.fi:1119

'Tommi

---
                           
* Origin: 2a01:4f9:c011:1ec5:f1d0:2:221:1 (2:221/1.0)

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™.