Gnus development mailing list
 help / color / mirror / Atom feed
* Is there a way to copy a URL from HTML email rather than opening it in a browser?
@ 2024-09-08 13:22 Steinar Bang
  2024-09-08 17:44 ` Adam Sjøgren
  0 siblings, 1 reply; 4+ messages in thread
From: Steinar Bang @ 2024-09-08 13:22 UTC (permalink / raw)
  To: ding

From time to time I would like to examine the URL a spammer would like
to send me to (to figure what they are trying to make me do and how bad
it would be if I (or someone else) did click the link).

Looking at the raw message is usually useless, since the URL is hidden
in lots of base64 and/or HTML and q-p encoding.

Is there a way to copy out the URL of a link in a parsed and rendered
HTML email?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to copy a URL from HTML email rather than opening it in a browser?
  2024-09-08 13:22 Is there a way to copy a URL from HTML email rather than opening it in a browser? Steinar Bang
@ 2024-09-08 17:44 ` Adam Sjøgren
  2024-09-09 16:17   ` Steinar Bang
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Sjøgren @ 2024-09-08 17:44 UTC (permalink / raw)
  To: ding

Steinar writes:

> Is there a way to copy out the URL of a link in a parsed and rendered
> HTML email?

u is bound to do so, at least when you use shr as the HTML renderer:

,----
| u runs the command shr-maybe-probe-and-copy-url (found in shr-map),
| which is an interactive native-comp-function in ‘shr.el’.
| 
| It is bound to u and w.
`----


  Best regards,

    Adam

-- 
 "The universe has an attitude, mom!"                       Adam Sjøgren
                                                       asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to copy a URL from HTML email rather than opening it in a browser?
  2024-09-08 17:44 ` Adam Sjøgren
@ 2024-09-09 16:17   ` Steinar Bang
  2024-09-09 18:40     ` Adam Sjøgren
  0 siblings, 1 reply; 4+ messages in thread
From: Steinar Bang @ 2024-09-09 16:17 UTC (permalink / raw)
  To: ding

>>>>> Adam Sjøgren <asjo@koldfront.dk>:

> Steinar writes:
>> Is there a way to copy out the URL of a link in a parsed and rendered
>> HTML email?

> u is bound to do so, at least when you use shr as the HTML renderer:

That worked perfectly! Thanks!

Used TAB to position the cursor over the desired link, then pressed u
and then switched to the *scratch* buffer and pasted the URL with C-y.

GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-07-22, modified by Debian
Gnus v5.13



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to copy a URL from HTML email rather than opening it in a browser?
  2024-09-09 16:17   ` Steinar Bang
@ 2024-09-09 18:40     ` Adam Sjøgren
  0 siblings, 0 replies; 4+ messages in thread
From: Adam Sjøgren @ 2024-09-09 18:40 UTC (permalink / raw)
  To: ding

Steinar writes:

> That worked perfectly! Thanks!

Great!

> Used TAB to position the cursor over the desired link, then pressed u
> and then switched to the *scratch* buffer and pasted the URL with C-y.

I think it also flashes the url as a message in the mini-buffer, but
that might be too fleeting :-)


  Best regards,

    Adam

-- 
 "Sunday morning when the rain begins to fall               Adam Sjøgren
  It's the end of the world"                           asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-09 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-08 13:22 Is there a way to copy a URL from HTML email rather than opening it in a browser? Steinar Bang
2024-09-08 17:44 ` Adam Sjøgren
2024-09-09 16:17   ` Steinar Bang
2024-09-09 18:40     ` Adam Sjøgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).