Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solution for "very long urls in urlview"

166 views
Skip to first unread message

Tyger

unread,
Feb 20, 2006, 9:23:14 PM2/20/06
to
Hi,
Everyone. Did you come across a problem when you want use urlview
extract a url from mutt but only get a part of it, for the url is too
long to be broken by mutt with a "=" ? If the answer is yes,
congraduations! You are in a right place. I got that problem yesterday,
then I "googled", at last I find a solution in the net after several
hours(you can say I'm lucky). Then you are more lucky because what you
should do is just click the folloing link and read that page.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=127090

Why I write this message, because I want anyone who has the same
trouble will find a solution easier, then I list the key words
following:
mutt urlview long url long urls break lines cut lines quoted-printable


Tyger

Message has been deleted

Andrei Emeltchenko

unread,
Feb 21, 2006, 10:01:10 AM2/21/06
to
Hi,

I didn't find solution there.

-Andrei

Tyger

unread,
Feb 21, 2006, 9:50:00 PM2/21/06
to
Really?
Are you sure reading it completely?

Ok, a simple solusition is (you can get it from the last message of
link I provided):
press v in mutt, because the e-mail is multipart text/HTML.
you would see something like:

I 1 <no description> [multipa/alternativ, 7bit,
16K]
I 2 +-><no description> [text/plain, quoted,
iso-8859-1, 2.7K]
I 3 +-><no description> [text/html, quoted,
iso-8859-1, 13K]

Then go to part 2, press enter, and press Ctrl-b there invoking
urlview, the URL is correct, not cut.

!!God and Miernik <mie...@ffii.org> forgive me quoting his words
without permission.

Christopher Anderson

unread,
Sep 20, 2022, 5:04:04 AM9/20/22
to
Thanks!

I had a different problem, where mutt breaks URLs across lines with +'s, and it stops them being clickable from a terminal session.

But finding out about urlview was enough to produce a solution.

For anyone else in a similar situation, I made a shell script ~/bin/url_handler.sh

```
/usr/bin/env bash
echo -e "\n\n$1\n\n"
read -r -n 1
```

and in ~/.urlview

```
COMMAND ~/bin/url_handler.sh
```

Now I get the URL wrapped normally, and it waits for a keypress before resuming. Brilliant.

Rich

unread,
Sep 20, 2022, 6:24:00 AM9/20/22
to
Christopher Anderson <cle...@gmail.com> wrote:
> Thanks!
>
> I had a different problem, where mutt breaks URLs across lines with
> +'s, and it stops them being clickable from a terminal session.
>
> But finding out about urlview was enough to produce a solution.

Or, alternately, tell mutt not to add those "+" characters by unsetting
the "markers" config variable:

3.125. markers

Type: boolean
Default: yes

Controls the display of wrapped lines in the internal pager. If set, a
"+" marker is displayed at the beginning of wrapped lines.

Also see the $smart_wrap variable.

Chris Green

unread,
Sep 20, 2022, 7:18:04 AM9/20/22
to
But this doesn't fix the inability to click on long URLs, mutt still
breaks them into separate lines.

--
Chris Green
·

Chris Green

unread,
Sep 20, 2022, 8:18:03 AM9/20/22
to
Roger Bell_West <roger+c...@nospam.firedrake.org> wrote:
> On 2022-09-20, Chris Green wrote:
>
> >But this doesn't fix the inability to click on long URLs, mutt still
> >breaks them into separate lines.
>
> That depends on your terminal emulator.

No, it's only in mutt that long lines are split rather than wrapped.
It's the mutt internal pager that splits the lines, all other programs
using the same terminal emulator (xfce4-terminal) don't split long
wrapped lines.

--
Chris Green
·
0 new messages