Hi Nicholas,
On 2024-02-23 16:57:52, you wrote to Carlos Navarro:
CN>> 27 Jan 2024 20:23:35 +0100 Carlos Navarro -> Tommi Koivula:
CN>>> This may be a possible way to fix the corrupted From field in
CN>>> headers: in nntpserv.c, instead of just removing this line:
CN>>> strcpy(mimefrom,&mimefrom[6]);
CN>>> Replace it by:
CN>>> memmove(mimefrom,mimefrom+6,strlen(mimefrom)-5);
CN>>> There could also be issues with the Subject field. The next line:
CN>>> strcpy(mimesubj,&mimesubj[9]);
CN>>> could be changed to:
CN>>> memmove(mimesubj,mimesubj+9,strlen(mimesubj)-8);
CN>>> As for the corruption in the body of messages posted with newsreaders
CN>>> that support flowed text (like Thunderbird), I think it may be fixed
CN>>> by changing this:
CN>>> strcpy(line,&line[1]);
CN>>> to this:
CN>>> memmove(line,line+1,strlen(line));
CN>>> These patches are for both JamNNTPd and SmapiNNTPd.
NB> Another reply to the same message, with another utf-8 editor. Does this one
NB> look better to you Wilfred and Tommi?
Yes, I don't see any utf-8 characters at all...
Bye, Wilfred.
--- FMail-lnx64 2.2.1.1
* Origin: FMail development HQ (2:280/464)
|