From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Anyone using extract_url with mutt?
Date: Thu, 29 Apr 2021 20:33:33 -0400 [thread overview]
Message-ID: <YItQXTqa19ztI33s@waltdnes.org> (raw)
In-Reply-To: <20210428041842.rz56aufq7q33hykx@gmail.com>
On Wed, Apr 28, 2021 at 12:18:42PM +0800, Steve Kollios wrote
>
> I'd be interested to see how this integrates in your workflow, I'm
> looking for a similar solution myself. The current functionality of
> mutt/neomutt leaves a bit to be desired when using it as described.
I read email with mutt in an xterm. Here's my current my current,
deprecated, setup with Urlview. It's a two-step process...
1) In "~/.mutt/muttrc" in the "Macros" section, as one long line, tell
mutt to feed the message through "urlview" when you hit uppercase U,
either {SHIFT}{U} or "u" with {CAPSLOCK} enabled.
macro pager U ":set pipe_decode\n|urlview\n:unset pipe_decode\n" "extract URLs out of a message"
2) In "~/.urlview" two lines tell Urlview what regexp to match as a URL
and what to do when the user selects a URL. I don't know if the
"width/height" parameters are honoured any more in Pale Moon
REGEXP (((https?|ftp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
COMMAND palemoon -width 950 -height 1050 -P email %s &
My workflow is...
* I'm reading an email, and I come across a URL I want to look at.
* I hit {SHIFT}{U} and a list of URLS from that email pops up at the top.
See the attached PNG image. I'm using a "what's coming soon" email
from Netflix as an example.
* Use the UP and DOWN keys on the keyboard to select the URL you're
interested in, i.e the arrow at the left of the image.
* Hit {ENTER} and the selected URL shows up at the bottom of my xterm.
I can edit the URL if it want to. Hitting {ENTER} again launches the
command (i.e. Pale Moon with the the email profile), or {CTRL}{C}
backs out.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
next prev parent reply other threads:[~2021-04-30 0:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 7:19 [gentoo-user] Anyone using extract_url with mutt? Walter Dnes
2020-11-26 8:11 ` David Haller
2021-04-24 7:40 ` Nils Freydank
2021-04-28 1:18 ` Walter Dnes
2021-04-28 4:18 ` Steve Kollios
2021-04-30 0:33 ` Walter Dnes [this message]
2021-04-30 0:36 ` Walter Dnes
2021-04-29 12:35 ` Nils Freydank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YItQXTqa19ztI33s@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox