I wish that gnome-terminal was able to support multi-line URLs, or that mutt was able to render long urls on a single logical line.

If you use mutt in gnome-terminal, you may have noticed that urls that wrap to another line cannot be opened using gnome-terminal's context menu. Of course, resizing the terminal to be wide enough works around the problem, but is not always practical.

Another workaround is to pipe the message to less. While the url will still be displayed split across multiple lines, gnome-terminal will then recognize the whole url as one thing.

Why does less work where mutt fails? Well, it seems that mutt and less print the url differently. less simply prints the whole url, and lets gnome-terminal wrap it to the next line. mutt prints the first line of the url, then moves the cursor to the start of the next line, and prints the remainder.

This could be fixed either by making gnome-terminal smarter about finding the end of urls that are sent to it in multiple pieces, or by making mutt (or likely really ncurses) change how it outputs long lines.

Another solution for opening URLs
I've had the same problem with opening URLs in mutt. The way I solved it is to use Ctrl-B, which uses urlview to open URLs. Obviously, you'd need to install urlview.
Comment by crustytoothpaste.ath.cx/~bmc//
urlview

I prefer not to use urlview because

  1. It has its own issues identifying urls, and is another complex thing to set up
  2. Many mails have multiple urls and urlview can't show context about which is which.
Comment by joey [kitenet.net]
comment 3

I have the same problem.

Not sure if the slang version of mutt is still usable? Maybe that does not suffer the same problem.

I think the long term solution is to stop using mutt (for me at least), maybe one day I will get around to writing the client that would fit my needs better.

Comment by jmtd [livejournal.com]
Not an ncurses problem
Selecting long URLs from irssi works just fine, so it's not an ncurses problem. Seems like mutt is intentionally splitting the display of the line instead of letting ncurses handle the wrapping.
Comment by jamessan [myopenid.com]