BSD Ports

textproc/extract_url 1.6.2_1 DragonFly

Perl script that extracts URLs from email in MIME or plain text format

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
textproc
Package size
18.4 KiB, 43.2 KiB installed

Description

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

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.

Main features: - Configurable - Handles URLs that have been broken over several lines in format=flowed delsp=yes email messages - Handles quoted-printable email messages - Sanitizes URLs so that they can't break out of the command shell

In the other systems

SystemPortVersion
DragonFlytextproc/extract_url1.6.2_1
FreeBSDtextproc/extract_url1.6.2_1
OpenBSDtextproc/extract_url1.6.2p0

Install

Binary package:

pkg install extract_url

From DPorts:

cd /usr/dports/textproc/extract_url && make install clean

Dependencies

Run dependencies 5

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

extract_url has been installed.

If you don't have ~/.extract_urlview

the extract_url configuration file can be copied, please type as user:

    su - user

    cp /usr/local/share/extract_url/extract_urlview.sample ~/.extract_urlview

    exit