mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
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 WWW: http://www.memoryhole.net/~kyle/extract_url/ PR: ports/180022 Submitted by: Horia Racoviceanu <horia@racoviceanu.com> Approved by: wg (mentor)
31 lines
853 B
Text
31 lines
853 B
Text
################################
|
|
### extract_url(1) configuration
|
|
#
|
|
# Copy this file to ~/.extract_urlview
|
|
|
|
# Command used to view URLs
|
|
#COMMAND firefox %s &
|
|
|
|
# URL will be opened without prompting when emails contains only one
|
|
#SHORTCUT
|
|
|
|
# Turn off showing the full URL before opening it
|
|
#NOREVIEW
|
|
|
|
# Disable the automatic exit of URL selection menu after viewing a URL
|
|
#PERSISTENT
|
|
|
|
# Ignore links that don't correspond to any text
|
|
#IGNORE_EMPTY_TAGS
|
|
|
|
# Specify which HTML tags will be examined for URLs
|
|
#HTML_TAGS a,applet,area,blockquote,embed,form,frame,iframe,input,ins,isindex,head,layer,link,object,q,script,xmp
|
|
|
|
# Key for PERSISTENT behaviour, or opposite if PERSISTENT is specified
|
|
#ALTSELECT k
|
|
|
|
# Show [url] list or show URLs in [context] when the program is run
|
|
#DEFAULT_VIEW url
|
|
|
|
# Sanitize URLs before they are displayed
|
|
#DISPLAY_SANITIZED
|