Shorlfilter
Get the latest version of shorlfilter as a tarball (v0.5, released 9/7/03).
Shorlfilter is a text filter to shorten long URLs using an online redirection database.
Shorlfilter takes all HTTP links in input text longer than a specified length and converts them to short links through the online shorl database. It is particularly handy for email, and can be used as a vim or mutt macro.
See http://shorl.com for more information.
shorlfilter is listed on freshmeat.net.
You can download shorlfilter as a Debian package, or add the following line to your /etc/apt/sources.list to use apt-get to install shorlfilter:
deb http://bostoncoop.net/adam/debian unstable main deb-src http://bostoncoop.net/adam/debian unstable main
You can take a look at shorlfilter, the main script, with nice highlighting, also see the changelog.