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

Re: mutt or vi question..



I usually use a little perl script:

#!/usr/bin/perl
undef($/);
$_=<STDIN>;
1 while s/^(?=[^>|:].{70,})(.{0,69}[^ ]|[^ \n]+?) +(?=[^ \n])/$1\n/m;
print;

for which I have an entry in my procmailrc:

:0 fbw
| $HOME/.procmail/myscript.pl

It breaks lines > 70 cols without breaking large words or urls.

Le lundi 05 avril 2004 à 16:22, David Bear a écrit:
> I'm constantly receive mails from those with horrible mua's like
> outlook express where the lines are very very long.
> 
> is there a mutt/vi way to re-wrap those lines at 70 col?
> 
> I like the way emacs does it will fill-region.  Anything comparable?
> 
> -- 
> David Bear
> phone:        480-965-8257
> fax:  480-965-9189
> College of Public Programs/ASU
> Wilson Hall 232
> Tempe, AZ 85287-0803
>  "Beware the IP portfolio, everyone will be suspect of trespassing"
> 

-- 
Antoine Marmignon
<antoine.marmignon@xxxxxxxxxxxxxxxx>