in message
<4(_dot_)3(_dot_)2(_dot_)7(_dot_)2(_dot_)20040303221601(_dot_)03876f00(_at_)127(_dot_)0(_dot_)0(_dot_)1>,
wrote
Christopher Benson thusly...
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.
I do not know of any, but can be made using scores. Just wait for
somebody. Until then, depending on your versions of sed, awk, or
cut, you could use...
echo $string | sed -E -e 's/^(.{0,60}).*/\1/'
echo $string | awk '{ print substr($0 , 0 , 60) }'
echo $string | cut -c 1-60
...See, no Perl!
- Parv
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail