extract_url.pl

Software Screenshot:
extract_url.pl
Software Details:
Version: 1.5.8
Upload Date: 21 Feb 15
Developer: Kyle
Distribution Type: Freeware
Downloads: 19

Rating: nan/5 (Total Votes: 0)

extract_url.pl is a Perl script that extracts URLs from correctly-encoded MIME email messages. This can be used either as a pre-parser for urlview, or to replace urlview entirely.

Why?

Urlview is a great program, but has some deficiencies. In particular, it isn't particularly configurable, and cannot handle URLs that have been broken over several lines in format=flowed delsp=yes email messages. Also, urlview doesn't eliminate duplicate URLs. This perl script handles all of that. It also sanitizes URLs so that they can't break out of the command shell.

This is designed primarily for use with the mutt emailer. 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). An alternative design is to access URLs from within mutt's pager by defining macros and tagging the URLs in the display to indicate which macro to use. A script you can use to do that is tagurl.pl.

What is new in this release:

  • This version 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.

What is new in version 1.4.1:

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

What is new in version 1.4:

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

What is new in version 1.3.3:

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

Requirements:

  • Perl
  • MIME::Parser
  • HTML::Parser
  • Getopt::Std
  • Switch
  • URI::Find
  • Curses::UI

Screenshots

extract-url-pl_1_76894.png

Similar Software

Comments to extract_url.pl

Comments not found
Add Comment
Turn on images!