

This command CAN contain a %s, which will be This line specifies the command that will be used to view Lines you can have in this file: COMMAND. However, it also has its ownĬonfiguration file ( ~/.extract_urlview) that will be Out what command to use based on the contents of your asĪ standalone URL selector), this perl script will try and figure 'macro index,pager \cb ,b "URL viewer"' message-hook ~G 'macro index,pager \cb ,B "URL viewer"'
#Url extractor from text how to
Here's a suggestion for how to handle encrypted email: macro index, pager ,b " set my_pdsave=\$pipe_decode \ unset pipe_decode \ extract_url.pl \ set pipe_decode=\$my_pdsave " "get URLs" macro index, pager ,B " set my_pdsave=\$pipe_decode \ set pipe_decode \ extract_url.pl \ set pipe_decode=\$my_pdsave " "decrypt message, then get URLs" message-hook. Macro index, pager \cb " set my_pdsave=\$pipe_decode \ unset pipe_decode \ extract_url.pl \ set pipe_decode=\$my_pdsave " "get URLs" Mutt Macrosįor use with mutt 1.4.x, here's a macro you can use: macro index, pager \cb " unset pipe_decode extract_url.pl " "get URLs"For use with mutt 1.5.x, here's a more complicated macro you V, -version Output version information and exit. c, -config Specify a config file to read. q, -quoted Force a quoted-printable decode on plain text (only applicable if -t is used). t, -text Prevent MIME handling treat the input as plain text. l, -list Prevent the use of Ncurses, and simply output a list of extracted URLs.
#Url extractor from text full
m, -man Display the full man page documentation. h, -help Print helpful documentation and exit. The script has a few command-line options you can use: Here's how you can use it:Ĭat message.txt | extract_url.pl | urlview This perl script expects a valid email to be piped in via
#Url extractor from text portable
