Article View: news.software.readers
Article #265585Re: slrn and reading base64 encoded posts
From: Tavis Ormandy
Date: Thu, 12 May 2022 17:51
Date: Thu, 12 May 2022 17:51
36 lines
1960 bytes
1960 bytes
On 2022-05-12, issdr wrote:
> Tavis Ormandy wrote:
>
>> FWIW, I just have `interpret "mime.sl"` and I can read multipart
>> messages just fine, I've never noticed any line ending problems.
>
> i followed up to my own post. not a regular user here, i found that out
> right after doing such a mess...
>
> btw, could you check that message on linux.debian.devel and see whether
> you get those nasty cr's too?
Ahh - you're right, it seems like Thunderbird users are sending CRLF
line endings. That's weird. You could try a patch to mime.sl like this:
--- /usr/share/slrn/slang/mime.sl 2022-05-12 10:50:21.980521000 -0700
+++ /usr/share/slrn/slang/mime.sl 2022-05-12 10:50:15.503466000 -0700
@@ -368,6 +368,10 @@
{
str = charset_convert_string (str, charset, Mime_Save_Charset, 0);
}
+
+ if (is_text(obj))
+ str = strreplace (str, "\r\n", "\n");
+
obj.converted = 1;
return str;
}
Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger taviso@sdf.org
_\_V _( ) _( ) @taviso
Technical Details
Message-ID:
<je4vpbFtmi2U1@mid.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<t5c1h1$24m$1@dont-email.me> <8735hie3mx.fsf@ID-313311.news.uni-berlin.de> <t5c76f$8u6$1@dont-email.me> <t5c8m9$inp$1@dont-email.me> <87bkw5wrn5.fsf@ID-313311.news.uni-berlin.de> <je4l0oFrlldU1@mid.individual.net> <87h75uzqw2.fsf@ID-313311.news.uni-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <je4vpbFtmi2U1@mid.individual.net> Subject: Re: slrn and reading base64 encoded posts Date: Thu, 12 May 2022 17:51:39 +0000 From: Tavis Ormandy <taviso@gmail.com> References: <t5c1h1$24m$1@dont-email.me> <8735hie3mx.fsf@ID-313311.news.uni-berlin.de> <t5c76f$8u6$1@dont-email.me> <t5c8m9$inp$1@dont-email.me> <87bkw5wrn5.fsf@ID-313311.news.uni-berlin.de> <je4l0oFrlldU1@mid.individual.net> <87h75uzqw2.fsf@ID-313311.news.uni-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Lines: 36 X-Trace: individual.net Y6Nlbo3UhQRER4N+T/+v1gWbimGIDz2PqSbXrAs9J5UT/R+R6J Cancel-Lock: sha1:WYisdF64b8W7UoDDQHdKcaI6lhE= User-Agent: slrn/pre1.0.4-5 (Linux)