On Tue, 8 Jan 2002, Shridhar Daithankar wrote:

> P.S. Dump rediffmail and come to yahoo etc. where you can use POP,
> use your own mail client and format a message a bit.
> 
> I am not sure I will format your message next time. I may choose to
> ignore it for no fault of yours..

A small perl one liner to wrap long lines in emails:

perl -MText::Wrap=wrap,$columns -pe 'BEGIN {$columns=72;$s="[>}|%]";} 
s/^((?:$s\s?)*)(\s*)(.+)$/wrap(($1||"").($2||""), $1||"", $3)/goose'

(join to make one line).
you can configure number of columns to wrap at and characters used as 
separators ($columns and $s)

Run this through procmail.

Will mess up signed messages.

-- 
printk("Penguin %d is stuck in the bottle.\n", i);
        2.0.38 /usr/src/linux/arch/sparc/kernel/smp.c


Visit my webpage at http://www.ncst.ernet.in/~philip/
Read my writings at http://www.ncst.ernet.in/~philip/writings/

  MSN  philiptellis                         Yahoo!  philiptellis
  AIM  philiptellis                         ICQ     129711328


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to