🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56301

[slrn] Bug: mime-decode after saving

#56301
From: Thomas Schultz
Date: Mon, 03 Jan 2000 00:00
50 lines
1959 bytes
Hi,

When saving an article to a file, this is done in "raw mode", i.e. no
mime-decoding is done. IMO, this is okay (although it might be nice to
have an option for this). However, when viewing the article in the
builtin pager after saving, it is still displayed "raw", which looks
quite ugly in case of quoted-printable messages. This can be fixed by
mime-decoding the article at the end of slrn_save_current_article()
and save_article_as_unix_mail(). This patch does exactly that:

diff -cr slrn-0.9.6.2.orig/src/art.c slrn-0.9.6.2/src/art.c
*** slrn-0.9.6.2.orig/src/art.c	Mon Jan  3 14:40:41 2000
--- slrn-0.9.6.2/src/art.c	Mon Jan  3 14:40:48 2000
***************
*** 3223,3228 ****
--- 3223,3237 ----
       }
     
     fclose (fp);
+ 
+ #if SLRN_HAS_MIME
+    if (Slrn_Use_Mime)
+      {
+ 	slrn_mime_article_init ();
+ 	slrn_mime_process_article (Slrn_Current_Article);
+      }
+ #endif
+    
     return 0;
  }
  
***************
*** 3263,3268 ****
--- 3272,3285 ----
  	l = l->next;
       }
     fputs ("\n\n", fp);
+ 
+ #if SLRN_HAS_MIME
+    if (Slrn_Use_Mime)
+      {
+ 	slrn_mime_article_init ();
+ 	slrn_mime_process_article (Slrn_Current_Article);
+      }
+ #endif
     
     if (is_wrapped) wrap_article ();
  

Technical Details
Message-ID: <slrn871apg.8t6.tststs@starflower.tststs.ddns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn871apg.8t6.tststs@starflower.tststs.ddns.org>
Subject: [slrn] Bug: mime-decode after saving
Date: Mon, 03 Jan 2000 00:00:00 +0000
From: tststs@gmx.de (Thomas Schultz)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 567747746
X-Server-Date: 3 Jan 2000 14:01:09 GMT
X-Complaints-To: abuse@cityweb.de
Organization: Cityweb News Service
User-Agent: slrn/0.9.6.2+ (Linux)
NNTP-Posting-Date: 3 Jan 2000 14:02:37 GMT
Newsgroups: news.software.readers