Thread View: news.software.readers
4 messages
4 total messages
Started by Dominic Davidson
Fri, 27 Feb 1998 00:00
URLs in slrn
Author: Dominic Davidson
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
17 lines
966 bytes
966 bytes
With the current versions of slrn, if I go to an article which has no URLs in it and press U I get a message "No URLs found" however. this relies on slrn's URL detection. A lot of people miss out the http:// or ftp:// which is significant for detection of URLs. Does anyone have a patch or some SLang to allow entry of arbitrary URLs when U is pressed but no URLs have been found? Cheers, -Dom
Re: URLs in slrn
Author: Preben 'Peppe' Guldberg
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
34 lines
2029 bytes
2029 bytes
Thus wrote Dominic Davidson <dom+usenet@djd.ftech.co.uk>:
> With the current versions of slrn, if I go to an article which has no
> URLs in it and press U I get a message
> "No URLs found"
> however. this relies on slrn's URL detection. A lot of people miss out
> the http:// or ftp:// which is significant for detection of URLs.
> Does anyone have a patch or some SLang to allow entry of arbitrary
> URLs when U is pressed but no URLs have been found?
What I do to handle such a page is to pipe it to "urlview". This is a
small program that will scan the text for urls matched by a regular
expression. It shows a list of urls and you can edit the url prior to
launching a browser. It defaults to launch netscape.
In a two line setup file you can specify the browser to use and
customise the regular expression. Eg.
REGEXP ((((ht|f)tp)|mailto):(//)?[^ >"\t]*|(www|ftp)\.[-a-z0-9./~]+)[^ .,;\t>"]
COMMAND lynx '%s'
Urlview can be downloaded from ftp://ftp.cs.hmc.edu/pub/me/
Peppe
--
Preben Guldberg __/-\__ The woods are lovely, dark and deep
c928400@student.dtu.dk (o o) But I have promises to keep
----------------------oOOo (_) oOOo-- And miles to go before I sleep.
http://www.student.dtu.dk/~c928400 --Robert Frost
Re: URLs in slrn
Author: Heikki Kantola
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
43 lines
2030 bytes
2030 bytes
Dominic Davidson <dom+usenet@djd.ftech.co.uk> informed
news.software.readers with the following:
>With the current versions of slrn, if I go to an article which has no
>URLs in it and press U I get a message
>
>"No URLs found"
>
>however. this relies on slrn's URL detection. A lot of people miss out
>the http:// or ftp:// which is significant for detection of URLs.
>
>Does anyone have a patch or some SLang to allow entry of arbitrary
>URLs when U is pressed but no URLs have been found?
This is not patch, but a S-Lang macro, I found from this very same
newsgroup once upon a time:
define call_browser () {
variable Null_String = "";
variable cmd = Null_String;
variable browser = "lynx";
variable url = read_mini ("give an URL", Null_String, Null_String);
if (strlen (url)) {
cmd = Sprintf ("%s %s", browser, url, 2);
() = system (cmd);
}
}
define browse () {
ERROR_BLOCK {
_clear_error ();
call_browser ();
}
call ("browse_url");
}
definekey ("browse", "U", "article");
--
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Re: URLs in slrn
Author: Dominic Davidson
Date: Sun, 01 Mar 1998 00:00
Date: Sun, 01 Mar 1998 00:00
13 lines
913 bytes
913 bytes
On 27 Feb 1998 12:23:18 GMT, Heikki Kantola <hezu@iki.fi> wrote: >This is not patch, but a S-Lang macro, I found from this very same >newsgroup once upon a time: [...] Thanks! I'll give this and urlview a try and see how I fare. Cheers, -Dom
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