procmail
[Top] [All Lists]

Re: chomp command

2004-03-04 01:11:51
On 03 Mar 2004, at 20:18, Christopher Benson wrote:
Is there some kind of "chomp" command with procmail? I'm looking for something that will take a subject like and make it < 60 characters. If it's over 60 then it just gets chopped off. I was hoping I wouldn't have to pipe out to a perl script if I didn't have to.

chr10=".........."
chr60=${chr10}${ch10}${ch10}${ch10}${ch10}${ch10}

:0 fw
* ^Subject:(.*\<)?\/$chr60
| formail -I"Subject: $MATCH"

or something.

--
Love is like oxygen/You get too much/you get too high/Not enough and you're gonna die


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>