Re: URLs screwed in the mail body
- To: mutt-users@xxxxxxxx
 
- Subject: Re: URLs screwed in the mail body
 
- From: "Francis Moreau" <francis.moro@xxxxxxxxx>
 
- Date: Sat, 8 Mar 2008 14:10:27 +0100
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;        bh=jaPfuSxdkxuvg9mOinBx3NBArw9pzVSVblabUOiDIcI=;        b=bPBUg78djGMBYY5nyadXj2ucgD3vv4P9T+iZ3T9B+ZuQCRnhG2mIfD4tIO+xfXY5rTXdEVOBvSuX3E9yDYX8+0mlYlhe1k/zxMc3CJ5prah7g9m4wirCexCsT1UgSxjegT4LqfrCfv9ZiFr3ckGAswHCefFirvc9oGvBU7wqb6U=
 
- Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;        b=ZZBgj5Ekiy/2bdUwSWCHW5Y8QcDOvrDuBF4MbiqT85S6ndqvgRQlvktfXC5FPNlUSRi3//NVosDL6nhcsxnOybf7bdixrX9Wy3faE3bbXBKLWw+GGN12Xt7pvPTMhCaBDCEoIVEYcryxMC4m5LpyFwZs+YwDmlQWsd0AZ0vMjOA=
 
- In-reply-to: <20080307160055.GO23437@xxxxxxxxxxxxx>
 
- List-post: <mailto:mutt-users@mutt.org>
 
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
 
- References: <38b2ab8a0803070126h47c06683hc346db2187c52324@xxxxxxxxxxxxxx>	 <20080307160055.GO23437@xxxxxxxxxxxxx>
 
- Sender: owner-mutt-users@xxxxxxxx
 
Hello Kyle,
On Fri, Mar 7, 2008 at 5:00 PM, Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> wrote:
>  I can think of two ways, both have their flaws.
Actually it would be better to fix the source of the problem instead
of trying to
find a workaround... But I don't know where these URLs get splitted at first.
Perhaps you could enlight me ?
>
>      1. You can set pipe_decode before piping the message to urlview;
>         that way mutt will reconnect all the lines according to the way
>         they were encoded, and URLs won't be split. On the other hand,
>         if you use w3m as your html renderer, many URLs will simply not
>         be visible to urlview.
>
>      2. Pipe it through tr to removes all newlines and spaces before
>         piping it to urlview. Like this:
>
>         macro pager \cb "<pipe-message>tr -d ' \r\n' | urlview<enter>"
>
>  The second option seems to be the best... but it has the problem that
>  it may concatenate urls that shouldn't be concatenated (For example,
>  imagine the sentence "Go to http://www.google.com/ and tell me what
>  you think" - the url would become
>  http://www.google.com/andtellmewhatyouthink
Why in this case spaces would be deleted ?
>
>  Perhaps it's better to do this:
>
>      3. Pipe it through lynx to extract the urls before piping it to
>         urlview, like so:
>
>         macro pager \cb "<pipe-message>lynx --force-html --dump | 
> urlview<enter>"
>
Yes. It would be nice to apply this macro for html emails only. For text emails
just do the usual/fast thing.
Thank you for your usefull feedbacks.
-- 
Francis