Subject: Procmail rule problem. . .

From: (Dave Lopata) <[email-masked]>
Date: Tue, 28 Mar 1995 13:41:41 -0500

...

	I've got a procmailrc rule that I thought worked, but now were
noticing some problems with certain users.  Below is the important
portion of the procmailrc. . .

VERBOSE    =on
LOGABSTRACT=all
LOGFILE    =/spool/logs/procmail
ALTERNATE  =/var/alt.mail/$LOGNAME
FLUSH      =/var/alt.mail/$LOGNAME.flush
RC         =$HOME/.procmailrc

[Stuff Deleted]

        :0c
        * ?/usr/ucb/test -r $ALTERNATE
        | /bin/mv $ALTERNATE $FLUSH ; \
          /bin/cat $FLUSH | /usr/local/bin/formail -s $SENDMAIL -oi -t

	The log file is reporting for one of the users that fails.  He
doesn't have a ~/.procmailrc, so he only reads in the global one,
which contains the code above:

>From [email-masked]  Tue Mar 28 13:29:09 1995
 Subject: Test (ignore)
  Folder: /usr/users/bindu/.mailspool/bindu                                 545
procmail: Assigning "ALTERNATE=/var/alt.mail/bindu"
procmail: Assigning "FLUSH=/var/alt.mail/bindu.flush"
procmail: Assigning "RC=/usr/users/bindu/.procmailrc"
procmail: Assigning "LASTFOLDER=/spool/backup.mail/bindu.backup"
procmail: Opening "/spool/backup.mail/bindu.backup"
procmail: Acquiring kernel-lock
>From [email-masked]  Tue Mar 28 13:30:28 1995
 Subject: Test (Ignore)
  Folder: /spool/backup.mail/bindu.backup                                   545
procmail: [18792] Tue Mar 28 13:30:29 1995
procmail: Executing "/usr/ucb/test,-r,/usr/users/bindu"
procmail: [18792] Tue Mar 28 13:30:29 1995
procmail: Match on "/usr/ucb/test -r /usr/users/bindu"
procmail: Executing "/usr/ucb/test,-r,/var/alt.mail/bindu"
procmail: Match on "/usr/ucb/test -r /var/alt.mail/bindu"
procmail: Assigning "LASTFOLDER= /bin/mv $ALTERNATE $FLUSH ; \
          /bin/cat $FLUSH | /usr/local/bin/formail -s $SENDMAIL -oi -t"
procmail: Executing " /bin/mv $ALTERNATE $FLUSH ; \
          /bin/cat $FLUSH | /usr/local/bin/formail -s $SENDMAIL -oi -t"
>From [email-masked]  Tue Mar 28 13:30:28 1995
 Subject: Test (Ignore)
  Folder:  /bin/mv $ALTERNATE $FLUSH ; \    /bin/cat $FLUSH | /usr/loca     545
procmail: Executing "/usr/ucb/test,-r,/usr/users/bindu/.procmailrc"
grep: can't open -c
grep: can't open  /bin/mv $ALTERNATE $FLUSH ; \
          /bin/cat $FLUSH | /usr/local/bin/formail -s $SENDMAIL -oi -t
procmail: Program failure (1) of "/usr/ucb/test"
procmail: No match on "/usr/ucb/test -r /usr/users/bindu/.procmailrc"
procmail: Locking "/usr/users/bindu/.mailspool/bindu.lock"
procmail: [18792] Tue Mar 28 13:30:30 1995
procmail: Assigning "LASTFOLDER=/usr/users/bindu/.mailspool/bindu"
procmail: Opening "/usr/users/bindu/.mailspool/bindu"
procmail: Acquiring kernel-lock
procmail: [18792] Tue Mar 28 13:30:31 1995
procmail: Unlocking "/usr/users/bindu/.mailspool/bindu.lock"
>From [email-masked]  Tue Mar 28 13:30:28 1995
 Subject: Test (Ignore)
  Folder: /usr/users/bindu/.mailspool/bindu                                 545
procmail: Notified comsat: "bindu@771290:/usr/users/bindu/.mailspool/bindu"