On Sat, May 14, 2022 at 03:49:54AM +0200, Vincent Lefevre wrote:
On 2022-05-13 21:55:12 +0200, Daan van Rossum wrote:
* on Friday, 2022-05-13 19:49 +0200, Vincent Lefevre <vinc...@vinc17.org> wrote:
> A better tool could be to convert the text to HTML with just
> URL recognition to generate <a href="URL">URL</a> links (and
> perhaps a bit more), and run a web browser on it.

There is the 'urlscan' tool that does exactly this. It does the job,
without using the terminal's url detection functionality.

Actually it doesn't. It just gives the context, but it will have
to pass the URL to an external web browser. Even though it seems
to have support to do that in a secure way, i.e. via a pipe,
most web browsers only support URLs provided as an argument,
which means that other users of the machine can see them, e.g.
with the "ps" utility.

I don't use a 'modern' terminal with url detection, but simply send more complex mails to my browser.

In my experience most mail with urls in them come with an alternative text/html part, which I can conveniently view in my browser by using the view-mailcap feature. Then I can simply click the link in my browser.

One may also add a mailcap entry or macro for piping text/plain through urlscan and then to the browser.


Christopher

Reply via email to