🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #249629

Re: [slrn] Development on the move again.....

#249629
From: John E. Davis
Date: Sun, 08 Apr 2012 16:16
56 lines
3924 bytes
On Sun, 08 Apr 2012 17:53:45 +1000, andrew <andrew@skamandros.invalid>
> slrn development is on the move again from JED's git repository. Details
> are here:
>
> http://www.slrn.org/download.html#git

In particular, read the changes.txt file in the distribution to see
what is new/different.  The main new thing is support for multipart
mime messages, which allows the user to save/view user-selected parts
of such messages.  The interface probably needs to be hammered out a
bit before I make it part of the default setting.  At the moment, you
have to add something like:
#v+
   interpret "mime.sl"
   setkey article "mime_browse" "v"
#v-
to your .slrnrc file.  I personally use:
#v+
   set macro_directory "lib/slrn"
   interpret "myslrn.sl"
#v-
where $HOME/lib/slrn/myslrn.sl contains, among other things,
#v+
   require ("mime");
   () = register_hook ("read_article_hook", &mime_process_multipart);
   definekey ("mime_browse", "v", "article");
#v-
The mime_process_multipart hook will get invoked after the article has
been read from the server.  It replaces a multipart MIME message by
the first text/plain portion that it finds, and prints a small message
at the bottom of the display summarizing what is in it, e.g.,
#v+
   MIME multipart/mixed [1 non-text, 2 text (0 html)]
#v-
The "mime_browse" function will allow other parts to be accessed via a
popup window such as:
#v+
           ┌──────────────────────────────────────────────────────┐
           │                     Browse Mime                      │
           │                                                      │
           │ 0 text/plain       |    us-ascii|                    │
           │ 1 app/pdf          |            | xap_bayes_2012.pdf │
           │ 2 text/plain       |    us-ascii|                    │
           │ 3 View full message with all parts                   │
           │                                                      │
           │                     (Select One)                     │
           └──────────────────────────────────────────────────────┘
#v-
(The above looks ok in my editor, and hopefully ok in slrn after
posting).

>From there a selected piece can either be viewed (using an external
viewer from the mailcap file), or saved.

Thanks,
--John
Technical Details
Message-ID: <slrnjo3ef0.dvp.jed@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
References: <20120408174246.83@skamandros.andrews-corner.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnjo3ef0.dvp.jed@aluche.mit.edu>
Subject: Re: [slrn] Development on the move again.....
Date: Sun, 08 Apr 2012 16:16:32 +0000
From: "John E. Davis" <jed@jedsoft.org>
References: <20120408174246.83@skamandros.andrews-corner.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 56
Reply-To: davis@space.mit.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 8 Apr 2012 16:16:32 +0000 (UTC)
Injection-Info: mx04.eternal-september.org;
 posting-host="gZbVmHBbU4x8lTThtkSvpw";
 logging-data="11719"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX19ja99zohZ21WOsjWj9mTQx"
User-Agent: slrn/pre1.0.0-38 (Linux)
Cancel-Lock: sha1:bYLk9TXuL6TTDS+eTulSp424Fxw=
X-Original-Bytes: 3720