My message above is trying to understand the general flow, so I can debug better. Now, here is something more specific:
I changed my .procmailrc file to do logging - it now looks like:
TESTDIR=/Users/admin
MAILDIR=${TESTDIR}
LOGFILE=${TESTDIR}/Proctest.log
LOG="--- Logging for ${LOGNAME}, "
VERBOSE=yes
LOGABSTRACT=all
:0:
* ^TO_.*.com
| /web/fudfiles/scripts/maillist.php 1
From looking at the resulting log file, I can tell that procmail is indeed functioning in some way, because it "notices" my incoming email and tries to do something with the maillist.php script. But clearly something going terribly wrong. Here's the log (below), anyone care to guess about the problem?
--- Logging for admin, procmail: [503] Fri May 16 13:28:19 2003
procmail: Assigning "LOGABSTRACT=all"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).*.com"
procmail: Couldn't determine implicit lockfile from "/web/fudfiles/scripts/maillist.php"
procmail: Locking ".lock"
procmail: Executing "/web/fudfiles/scripts/maillist.php,1"
/web/fudfiles/scripts/maillist.php: ?php: No such file or directory
/web/fudfiles/scripts/maillist.php: /Applications: is a directory
/web/fudfiles/scripts/maillist.php: line 5: syntax error near unexpected token `(C'
/web/fudfiles/scripts/maillist.php: line 5: `* copyright : (C) 2001,2002 Advanced Internet Designs Inc.'
procmail: Non-zero exitcode (2) from "/web/fudfiles/scripts/maillist.php"
procmail: Assigning "LASTFOLDER=/web/fudfiles/scripts/maillist.php 1"
procmail: Unlocking ".lock"
procmail: Bypassed locking "/var/mail/admin.lock"
procmail: Assigning "LASTFOLDER=/var/mail/admin"
procmail: Opening "/var/mail/admin"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "admin@0:/var/mail/admin"
From zzzzz(at)zzzzzz(dot)com Fri May 16 13:28:19 2003
Subject: hi at 1:30
Folder: /var/mail/admin 832
Thanks all! -Steve