Article View: news.software.readers
Article #261397Re: slrn and URLs
From: J.B. Nicholson
Date: Sun, 25 Dec 2016 15:22
Date: Sun, 25 Dec 2016 15:22
12 lines
1821 bytes
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.
Technical Details
Message-ID:
<slrno5vp1m.gjn.jbn@forestfield.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.(126883).mbox.7z!not-for-mailReferences:
<slrno5vbb1.2jf.g.kreme@snow.local>Show Full Headers
Complete Article Headers
Message-ID: <slrno5vp1m.gjn.jbn@forestfield.org> Subject: Re: slrn and URLs Date: Sun, 25 Dec 2016 15:22:29 +0000 From: "J.B. Nicholson" <jbn@forestfield.org> References: <slrno5vbb1.2jf.g.kreme@snow.local> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: solani.org Lines: 12 X-Trace: solani.org 1482679349 24594 eJwFwQkBgDAMA0BL9G/kbIH4l8BdRVtzsquzVBqPEOmQwSlin/12B0DcrGPzIPZNXplO+w8RiRDB (25 Dec 2016 15:22:29 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 25 Dec 2016 15:22:29 +0000 (UTC) User-Agent: slrn/1.0.2 (Linux) X-NNTP-Posting-Host: eJwFwQkBwDAIA0BL5QkMORQa/xJ2BwuJSQ+Eg6Dx9vuoAplmIXW1dWHtkqWUTT7MuU48rfMDKTgRWw== Cancel-Lock: sha1:lnPBVThkFiHA1vOBIaxsfmvQmyw= X-User-ID: eJwNyMkBwCAIBMCWFNgllCOH/Zdg5jlQbpYbQcPF9SNTEyLWY1gl/20hpxmieVia+Tl0ZXQOHyJaEWE= X-Received-Bytes: 1819 X-Received-Body-CRC: 1291849428