I solved my own problems. The ['s are
metacharacters, so I needed a '\' in front of them.
Through trial and error, I found that getting rid of
the ':' in the last two conditions allowed them to
work. Sorry about the inbox clutter.
Bill Tangren
I am using procmail 3.21 and the linux 2.4.9-13
kernel. I am trying to NOT filter certain newsgroups
through junkfilter, but my test doesn't work. I was
wondering what I was doing wrong. The first test is
to see if a left brace is present in the Subject
line. The second looks for a right square brace.
There are two test messages. The first has both
[]'s. The second one is 'To: procmail(_at_)Lists(_dot_)(_dot_)(_dot_)
This is the test script:
SHELL=/bin/sh
PATH="/home/bjt/bin:/usr/bin:/usr/local/bin:/usr/inc
lude:/usr/local/sbin:/bin:/sbin:/usr/sbin"
LOGABSTRACT=all
VERBOSE=yes
PMDIR=/home/bjt/.procmail/test
LOGFILE=$PMDIR/log
LOGFILEDIR=$PMDIR
DEFAULT=/dev/null
:0
* -1^0
* 1^0 ^Subject:.*[
* 1^0 ^Subject:.*]
* 2^0 ^TO_:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE
* 2^0 ^TO_:(_dot_)*inn-workers(_at_)isc\(_dot_)org
{
:0fw
| formail >> $DEFAULT
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail