I have a procmail problem that has been baffling me for quite a while. I
have some recipes that are designed to automatically approve certain
email addresses by calling the majordomo approve script. Everything
seems to work OK until the call to the approve script. At that point, I
get the following error in my log file (verbose):
From owner-theology Mon Dec 11 20:00:38 1995
Subject: BOUNCE theology(_at_)iclnet93(_dot_)iclnet(_dot_)org: Approval
required
Folder: /usr1/users/dgreen/bin/approve 2059
procmail: Unrecognised options: "s"
The Approve script works fine for me if I do it manually.
Here's my procmailrc file:
-------------------------------------
PATH=/bin:/usr/bin:/usr/local/bin
MAILRC=$HOME/.mailrc
MAILDIR=$HOME/mail
DEFAULT=$HOME/mail/mbox
LOGFILE=$HOME/mail/from
FORMAIL=$HOME/bin/formail
SHELL=/bin/sh
SENDMAIL=/usr/lib/sendmail
APPROVE=$HOME/bin/approve
LOGABSTRACT=all
:wc
^Subject:.*BOUNCE theology(_at_)iclnet93(_dot_)iclnet(_dot_)org:
/dev/null
:1Ba
^From:.*(dgreen@|eusdegr@|jbeale@|\
dgladden@|dhanley@|bigben|\
phillipj@|robcad!john@|\
lingle@|think@|werner@|\
thedoc@|peregrin@)
| $APPROVE
:1Bab
^From:.*(address1(_at_)freenet|address2(_at_)aol(_dot_)com)
| ( $FORMAIL -rkb -i"Subject: Post to Theology rejected; read-only" \
-I"From: Theology <dgreen(_at_)iclnet(_dot_)org>" ) \
| $SENDMAIL -t
:a:
mbox
----------------------------------
Here's the log file
----------------------------------
From owner-theology Mon Dec 11 20:00:38 1995
Subject: BOUNCE theology(_at_)iclnet93(_dot_)iclnet(_dot_)org: Approval
required
Folder: /dev/null 2059
From owner-theology Mon Dec 11 20:00:38 1995
Subject: BOUNCE theology(_at_)iclnet93(_dot_)iclnet(_dot_)org: Approval
required
Folder: /usr1/users/dgreen/bin/approve 2059
procmail: Unrecognised options: "s"
Usage: procmail [-vptoY] [-f fromwhom] [parameter=value | rcfile] ...
Or: procmail [-toY] [-f fromwhom] [-a argument] -d recipient ...
Or: procmail [-ptY] [-f fromwhom] -m [parameter=value] ... rcfile [arg] ...
Processing continued
procmail: Unknown user ""
procmail: Unknown user "theology(_at_)iclnet93(_dot_)iclnet(_dot_)org"
-------------------------------------------------
When it runs the approve file I get these procmail errors. I don't know
why that occurs because it should be in the middle of the approve script
at that time. Somehow it is seeing a bad parameter "s".
Any help will be greatly appreciated.
Thanks,
---
Derrick Green
dgreen(_at_)iclnet(_dot_)org
Allen, TX