I am having a couple of problems with formail and I can't figure out why
program execution is failing.
The first problem is with a cache of recently received messages. I have the
following in my .procmailrc
DUPFILE=${PROCHOME}/dups
CACHEFILE=${PROCHOME}/.cache
CACHESIZE=5000
GARBAGE=/dev/null
VERBOSE=on
# First we grab the Message-Id:
:0 cW: ${CACHEFILE}.lock
|formail -D ${CACHESIZE} ${CACHEFILE}
# This recipe should kill something if its Message-Id is in the
# cachefile
:0 a:
${DUPFILE}
:0 H
* ^Subject: *cmsg cancel.*
$GARBAGE
And I get the following in the log file:
procmail: [172] Wed Jun 11 08:05:24 1997
procmail: Locking "/home/boehm/.procmail/.cache.lock"
procmail: Executing "formail,-D,5000,/home/boehm/.procmail/.cache"
procmail: Program failure (1) of "formail"
procmail: Assigning "LASTFOLDER=formail -D 5000 /home/boehm/.procmail/.cache"
procmail: Unlocking "/home/boehm/.procmail/.cache.lock"
procmail: No match on "^Subject: *cmsg cancel.*"
The second problem occurs with seemingly random messages. This is what I see
in the log
procmail: [23577] Wed Jun 11 02:04:20 1997
procmail: Locking "/home/boehm/.procmail/.cache.lock"
procmail: Executing "formail,-D,5000,/home/boehm/.procmail/.cache"
procmail: Error while writing to "formail"
procmail: Program failure (1) of "formail"
procmail: Assigning "LASTFOLDER=formail -D 5000 /home/boehm/.procmail/.cache"
procmail: Unlocking "/home/boehm/.procmail/.cache.lock"
procmail: No match on "^Subject: *cmsg cancel.*"
The first log entry just says that there was a program failure. The second log
entry complains of an error while writing to formail.
Any help or suggestions would be appreciated.
--
Eric M. Boehm boehm(_at_)engineous(_dot_)com
Senior System Analyst Engineous Software, Inc.