On Sun, 2010-03-28 at 18:00 -0500, Harry Putnam wrote:
Going to a new thread with actual tests of technique mentioned in a
different thread
...
Just one sample of (trimmed) headers that zipped by that regex
...
Subject: AarcccKlllooUllllPPkdkellkjW
Don't forget that you can use external programs too.
Running the body of your e-mail as an example:
$ cat testmsg | grep -o --color '[a-zA-Z]\{5,\}' | wc -l
195
$ cat testmsg | grep -o --color '[a-zA-Z]\{6,\}' | wc -l
150
$ cat testmsg | grep -o --color '[a-zA-Z]\{7,\}' | wc -l
104
$ cat testmsg | grep -o --color '[a-zA-Z]\{8,\}' | wc -l
62
$ cat testmsg | grep -o --color '[a-zA-Z]\{9,\}' | wc -l
28
$ cat testmsg | grep -o --color '[a-zA-Z]\{10,\}' | wc -l
6
$ cat testmsg | grep -o --color '[a-zA-Z]\{10,\}'
demonstrated
nquxxfmuck
nquxxfmuck
AarcccKlllooUllllPPkdkellkjW
LASTFOLDER
AarcccKlllooUllllPPkdkellkjW
So to count how many words are 15 or more characters, you can add
something like this to your code:
:0 b
{ COUNT=`grep '[a-zA-Z]\{15,\}'|wc -l` }
You can also put commands in the condition lines with ? and ?? ... I
don't have time at the moment to hone the thought more.
j
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail