Projects / extract_url.pl

extract_url.pl

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
Licenses
Operating Systems
Implementation

Recent releases

  •  13 May 2013 16:35

    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.

    •  03 Jul 2009 20:41

      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.

      •  24 Oct 2008 21:00

        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).

        •  14 Oct 2008 00:44

          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.

          •  22 Sep 2008 17:03

            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.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.