<<< Date Index >>>     <<< Thread Index >>>

Re: quoting urls in replies



On 2009-02-10, Rejo Zenger <mutt-users@xxxxxxxxxxxxxxx> wrote:
> 
> Hi there,
> 
> Of course, mutt is doing fine. Just recently, I changed the locale to be
> used by mutt (I changed the charset setting) because the threads were
> incorrectly rendered in the message listing. Since that change, or just
> somewhere afterwards, replying to messages with URL's in the body has
> become somewhat cumbersome.
> 
> The original message contains a line like:
> 
>   Please read the manual at http://www.mutt.org!
> 
> Then, when I try to reply to that message, this line is quoted like:
> 
>   >Please read the manual at
> h_^Ht_^Ht_^Hp_^H:_^H/_^H/_^Hw_^Hw_^Hw_^H._^Hm_^Hu_^Ht_^Ht_^H._^Ho_^Hr_^Hg_^H!
> 
> Of course, this is not what I want. I don't really understand what does
> introduce this magic. Anyone does?

The URL is being underlined by the technique of printing an
underscore, backspacing, then overstriking with the character to be
underlined.  Mutt's built-in pager understands that technique and
will display such sequences in color, or perhaps underlined,
depending on your terminal.  (It displays on my rxvt in color.)

That sequence was probably in the original message, but you weren't
aware of it because mutt's pager handled it.  Your editor, on the
other hand, either doesn't understand such sequences or presents
them to you as raw sequences anyway because, after all, it is an
editor.

One solution would be to filter such lines in your editor through
the external command "col -b".  Another would be to execute a
command such as this one for vim:

    :%s/_\b//g

If that sequence was not in the original message, it must have been
added by some program you are using to convert from the original
message formatting (HTML?) to text.  There may be an option in the
program to inhibit that behavior, or you can find the program in
your mailcap file and add "| col -b" after it.

HTH,
Gary