1 |
On Wed, Apr 28, 2021 at 12:18:42PM +0800, Steve Kollios wrote |
2 |
> |
3 |
> I'd be interested to see how this integrates in your workflow, I'm |
4 |
> looking for a similar solution myself. The current functionality of |
5 |
> mutt/neomutt leaves a bit to be desired when using it as described. |
6 |
|
7 |
I read email with mutt in an xterm. Here's my current my current, |
8 |
deprecated, setup with Urlview. It's a two-step process... |
9 |
|
10 |
1) In "~/.mutt/muttrc" in the "Macros" section, as one long line, tell |
11 |
mutt to feed the message through "urlview" when you hit uppercase U, |
12 |
either {SHIFT}{U} or "u" with {CAPSLOCK} enabled. |
13 |
|
14 |
macro pager U ":set pipe_decode\n|urlview\n:unset pipe_decode\n" "extract URLs out of a message" |
15 |
|
16 |
2) In "~/.urlview" two lines tell Urlview what regexp to match as a URL |
17 |
and what to do when the user selects a URL. I don't know if the |
18 |
"width/height" parameters are honoured any more in Pale Moon |
19 |
|
20 |
REGEXP (((https?|ftp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):] |
21 |
COMMAND palemoon -width 950 -height 1050 -P email %s & |
22 |
|
23 |
My workflow is... |
24 |
|
25 |
* I'm reading an email, and I come across a URL I want to look at. |
26 |
|
27 |
* I hit {SHIFT}{U} and a list of URLS from that email pops up at the top. |
28 |
See the attached PNG image. I'm using a "what's coming soon" email |
29 |
from Netflix as an example. |
30 |
|
31 |
* Use the UP and DOWN keys on the keyboard to select the URL you're |
32 |
interested in, i.e the arrow at the left of the image. |
33 |
|
34 |
* Hit {ENTER} and the selected URL shows up at the bottom of my xterm. |
35 |
I can edit the URL if it want to. Hitting {ENTER} again launches the |
36 |
command (i.e. Pale Moon with the the email profile), or {CTRL}{C} |
37 |
backs out. |
38 |
|
39 |
-- |
40 |
Walter Dnes <waltdnes@××××××××.org> |
41 |
I don't run "desktop environments"; I run useful applications |