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
}
The log output for two test messages are:
procmail: Assigning
"LOGFILEDIR=/home/bjt/.procmail/test"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Score: -1 -1 ""
procmail: Score: 0 -1 "^Subject:.*["
procmail: Score: 1 0 "^Subject:.*]"
procmail: Score: 0 0 "(^((Original-
)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-
Resent)?)-To):(.*[^-a-zA-Z0-
9_.])?):(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE"
procmail: Score: 0 0 "(^((Original-
)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-
Resent)?)-To):(.*[^-a-zA-Z0-9_.])?):.*inn-
workers(_at_)isc\(_dot_)org"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
procmail: Notified comsat: "root(_at_)0:/dev/null"
From foo(_at_)foo(_dot_)net Mon Dec 24 09:07:34 2001
Subject: FW: [dummy-newsgroup] DNG
Folder: /dev/null
2272
procmail: Assigning
"LOGFILEDIR=/home/bjt/.procmail/test"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Score: -1 -1 ""
procmail: Score: 0 -1 "^Subject:.*["
procmail: Score: 0 -1 "^Subject:.*]"
procmail: Score: 0 -1 "(^((Original-
)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-
Resent)?)-To):(.*[^-a-zA-Z0-
9_.])?):(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE"
procmail: Score: 0 -1 "(^((Original-
)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-
Resent)?)-To):(.*[^-a-zA-Z0-9_.])?):.*inn-
workers(_at_)isc\(_dot_)org"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
procmail: Notified comsat: "root(_at_)0:/dev/null"
From foo(_at_)foo(_dot_)net Mon Dec 24 09:07:34 2001
Subject: test of new script
Folder: /dev/null
1008
On the first mail, the right square brace is caught,
but not the left. On the second, the email addy is
not caught at all. Any thought?
Bill Tangren
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail