🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Lewis Sun, 25 Dec 2016 11:27
slrn and URLs
#261402
Author: Lewis
Date: Sun, 25 Dec 2016 11:27
5 lines
1166 bytes
Is there a way to get slrn to pull URLs only from the body of a post
(ignoring those in the headers and signatures)?

-- 
IT'S POTATO, NOT POTATOE Bart chalkboard Ep. 7F01
Re: slrn and URLs
#261397
Author: J.B. Nicholson
Date: Sun, 25 Dec 2016 15:22
12 lines
1821 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> Is there a way to get slrn to pull URLs only from the body of a post
> (ignoring those in the headers and signatures)?

A macro could do this by storing the article in a variable (with
raw_article_as_string()), rewriting the article (replace_article())
without URLs in the headers and without URLs in the signature, then
using slrn's browse_url intrinsic to list the URLs, then restoring the
stored article back (thus leaving the untouched article for the user
again with replace_article()). Some minor parsing for headers and
signature, and you should have a personalized version of browse_url
which will only find the URLs in the body of an article.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads