From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 414531382C5 for ; Fri, 30 Apr 2021 00:33:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07674E0827; Fri, 30 Apr 2021 00:33:50 +0000 (UTC) Received: from pmta11.teksavvy.com (pmta11.teksavvy.com [76.10.157.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97FF1E081A for ; Fri, 30 Apr 2021 00:33:49 +0000 (UTC) IronPort-SDR: Tgn4uvaL6uNnxFn2IPL/9huBaIZdZ8gatVoV7KRHfrz91k50iojhTALSxf34zCF4NNwScha/K1 UD+x3a4VOj1A== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AmIbt0as+FAR+RaWnooee6FUf7skDm9V00z?= =?us-ascii?q?AX/kB9WHVpW+afkN2jm+le6A/shF8qKRMdsP2JJaXoex7h3LFv5415B9ufdS?= =?us-ascii?q?3HnEftE41494vlxFTbak7D38pQz71pfaQ7KPCYNzlHpP336gW5DNosqePvmM?= =?us-ascii?q?vDuc7kw31gTR5nZuVb1igRMHf9LmRMSBBCFd4FEvOnifZvnDa8ZW8RKv2yG3?= =?us-ascii?q?htZZmmm/TwiJnkbRQabiRG1CCyi1qThoLSIlygxRcZSDNT0d4ZgA34rzA=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FBCQAtT4tg/wL192haHQEBAQEJARI?= =?us-ascii?q?BBQUBQAmBToMiVmuIeIRQhhFEggEdOwGDRpcQgWgLAQEBAQEBAQEBOgECBAE?= =?us-ascii?q?BhEoEAgKBfSY4EwIEAQEMAQEBBQEBAQEBBgQCAoEAhV2GTgY6HDMLNAsHEDY?= =?us-ascii?q?RGRuCV4MHqX2BNIEBhGGFF4E6jVdDQIEJQoEVgyI+hA0BEgFuhSsEggKBAjh?= =?us-ascii?q?FBYFHA2EVkQCqOwqDEIEiB5wng1SQfyWJUoZSLbN/hm2BDXB9CDuCaVAZDla?= =?us-ascii?q?cMigvOAIGCgEBAwlXAYw3AQE?= X-IPAS-Result: =?us-ascii?q?A2FBCQAtT4tg/wL192haHQEBAQEJARIBBQUBQAmBToMiV?= =?us-ascii?q?muIeIRQhhFEggEdOwGDRpcQgWgLAQEBAQEBAQEBOgECBAEBhEoEAgKBfSY4E?= =?us-ascii?q?wIEAQEMAQEBBQEBAQEBBgQCAoEAhV2GTgY6HDMLNAsHEDYRGRuCV4MHqX2BN?= =?us-ascii?q?IEBhGGFF4E6jVdDQIEJQoEVgyI+hA0BEgFuhSsEggKBAjhFBYFHA2EVkQCqO?= =?us-ascii?q?wqDEIEiB5wng1SQfyWJUoZSLbN/hm2BDXB9CDuCaVAZDlacMigvOAIGCgEBA?= =?us-ascii?q?wlXAYw3AQE?= X-IronPort-AV: E=Sophos;i="5.82,260,1613451600"; d="scan'208";a="162829312" Received: from 104-247-245-2.cpe.teksavvy.com (HELO waltdnes.org) ([104.247.245.2]) by smtp11.teksavvy.com with SMTP; 29 Apr 2021 20:33:47 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Thu, 29 Apr 2021 20:33:33 -0400 From: "Walter Dnes" Date: Thu, 29 Apr 2021 20:33:33 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Anyone using extract_url with mutt? Message-ID: References: <20201126071913.GA2768@waltdnes.org> <20210424074035.crq3gbdxlgtqptv7@pygoscelis.ansernet> <20210428041842.rz56aufq7q33hykx@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428041842.rz56aufq7q33hykx@gmail.com> X-Archives-Salt: c9bb4db6-c6fe-4775-9638-423b6988131e X-Archives-Hash: e7042cfba13908d6b4deb13bf1859d80 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 I don't run "desktop environments"; I run useful applications