extract_url.pl is a Perl script that extracts URLs from either correctly-encoded MIME email messages or from plain text. It can be used either as a pre-parser for a URL selector (such as urlview), or as a standalone URL selector. It is very configurable, can handle URLs that have been broken over several lines in format=flowed delsp=yes email messages, and eliminates duplicate URLs. It was designed primarily for use with Mutt, but can be used by for any similar purpose. The idea is that if you want to access a URL in an email, you pipe the email to a URL extractor (like this one), which then lets you select a URL to view in some third program (such as Firefox).
|Tags||Communications Email helper|
|Operating Systems||OS Independent|
Release Notes: This release adds a few minor features, such as better handling of non-email plain-text, and the ability to specify inputs as arguments. However, a lot more has changed since the last release posted to freecode.com.
Release Notes: This release fixes "undefined variable" errors when used without URI::Find. It can toggle between showing the context of URLs in the main list and showing the URLs themselves, as well as specify whether to show the list of URLs at first (default) or to show the list of URL contexts.
Release Notes: This release has better contextual text handling (it uses word boundaries instead of explicit string lengths), and pulls URLs out of HTML text in addition to HTML tags. This may be somewhat sensitive to formatting issues (unexpected line breaks, etc).
Release Notes: This release adds support for a configurable alternative selection key (via ALTSELECT), allowing a person to, in effect, temporarily negate the PERSISTENT setting. It adds conditional support for long options if Getopt::Long is available.
Release Notes: Sometimes, multipart/alternative parts don't actually have an alternative, which could confuse the script. They're now handled correctly, and MIME parsing has been made more robust.