Sponsored Content
Special Forums News, Links, Events and Announcements Software Releases - RSS News extract_url.pl 1.3.3 (Default branch) Post 302239083 by Linux Bot on Monday 22nd of September 2008 11:50:04 PM
Old 09-23-2008
extract_url.pl 1.3.3 (Default branch)

extract_url.pl is a Perl script that extracts URLsfrom either correctly-encoded MIME email messagesor from plain text. It can be used either as apre-parser for a URL selector (such as urlview),or as a standalone URL selector. It is veryconfigurable, can handle URLs that have beenbroken over several lines in format=floweddelsp=yes email messages, and eliminates duplicateURLs. It was designed primarily for use with Mutt,but can be used by for any similar purpose. Theidea is that if you want to access a URL in anemail, you pipe the email to a URL extractor (likethis one), which then lets you select a URL toview in some third program (such as Firefox).License: BSD License (original)Changes:
Sometimes, multipart/alternative parts don'tactually have analternative, which could confuse the script.They're now handledcorrectly, and MIME parsing has been made morerobust.Image

Image

More...
 
urlview(1)						      General Commands Manual							urlview(1)

NAME
urlview - URL extractor/launcher SYNOPSIS
urlview filename [ filename ... ] DESCRIPTION
urlview is a screen oriented program for extracting URLs from text files and displaying a menu from which you may launch a command to view a specific item. CONFIGURATION
urlview attempts to read ~/.urlview upon startup. If this file doesn't exist, it will try to read a system wide file in /etc/urlview.conf. There are two configuration commands (order does not matter): REGEXP regexp urlview uses a regular expression to extract URLs from the specified text files. , , and f are all converted to their nor- mal printf(3) meanings. The default REGEXP is: (((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3).[-a-z0-9.]+)[^' .,;<>":] COMMAND command If the specified command contains a %s, it will be subsituted with the URL that was requested, otherwise the URL is appended to the COMMAND string. The default COMMAND is: url_handler.sh %s Note: You should never put single quotes around the %s. urlview does this for you, and also makes sure that single quotes eventually show- ing up inside the URL are handled properly. (Note that this shouldn't happen with the default regular expression, which explicitly excludes single quotes.) FILES
/etc/urlview.conf system-wide urlview configuration file ~/.urlview urlview configuration file SEE ALSO
printf(3), regcomp(3), regex(7) AUTHOR
Michael Elkins <me@cs.hmc.edu>. Modified for Debian by Luis Francisco Gonzalez <luisgh@debian.org>. Modified for SuSE by Dr. Werner Fink <werner@suse.de> and Stepan Kasal <kasal@suse.cz>. Changes put together by Thomas Roessler <roessler@does-not-exist.org>. urlview(1)
All times are GMT -4. The time now is 12:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy