procmail
[Top] [All Lists]

Re: chomp command

2004-03-03 21:13:16
Toen ik Christopher Benson kietelde, kwam er dit uit:

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.

Yes, that's easy to achieve. Use the match-operator
with a regex of 60 dots, and use formail to replace
the Subject:header.


I was hoping I wouldn't
have to pipe out to a perl script if I didn't have to.

You were hoping in the right direction.

-- 
Affijn, Ruud


_______________________________________________
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>