Hi Walter,

in case your problem isn't already solved net-mail/urlscan[1] might be an
alternative. Currently I maintain it in my overlay[2]. I just use it with
xdg-open or KDE's URL-click-behaviour, but according to the urlscan readme you
can "Run a command with the selected URL as the argument or pipe the selected
URL to a command." which sounds to me as your workflow.

In neomutt I use the following macro to just get all the URLs printed:
'macro pager \cb "<pipe-message> urlscan<Enter>" "description..."'

I think you could use the '--run' parameter (or the '--pipe' one if palemoon
supports that) and extend my macro to something like this:

macro pager \cb "<pipe-message> urlscan --run \
         '/home/waltdnes/pm/palemoon/palemoon -new-instance -p email {}' \
        <Enter>" "Open URLs in palemoon in a special profile."

Note that I test neither '--run' nor '--pipe' nor the extended macro.

[1] https://github.com/firecat53/urlscan
[2] 
https://git.holgersson.xyz/foss/holgersson-overlay/src/branch/master/net-mail/urlscan

Best regards,
Nils

Reply via email to