procmail
[Top] [All Lists]

FORWARD file and EXITCODE problem

1997-01-03 17:40:52
I have my "~/.forward" file set up like this:

"IFS=' ' && |/usr/local/nuglops/bin/procmail -Yf- || `ksh -c 'echo
~vjl'`/bin/procmail -Yf-"

which (supposedly) provides a "secondary copy" of PROCMAIL.  The principle
is if "/usr/local/nuglops/bin/procmail" doesn't exist (the normal location
of PROCMAIL here at NetCom) for some reason, a secondary or backup copy of
PROCMAIL located in "~vjl/bin/procmail" will be called.  This is to prevent
loss of email should the first copy be down.

Great, I thought, but now something's broke :^(.  SENDMAIL EXITCODE bounces
no longer work.  What happens is the email doesn't get bounced and an email
appears in my box like this (that's it only 2 lines):

From bodysurf  Fri Jan  3 16:09:08 1997
Status: RO

Here's the logfile when I send a test message from another account I have
that *should* bounce:

procmail: [10210] Fri Jan  3 16:09:06 1997
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "FROM= bodysurf(_at_)exo(_dot_)com"
procmail: Executing " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: Match on " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: Assigning "EXITCODE=67"
procmail: Locking "/u5/bodysurf/Procmail/Private/headers.gz.lock"
procmail: Executing " gzip -fc >> $PMDIRp/headers.gz"
procmail: [10210] Fri Jan  3 16:09:07 1997
procmail: Assigning "LASTFOLDER= gzip -fc >> $PMDIRp/headers.gz"
procmail: Unlocking "/u5/bodysurf/Procmail/Private/headers.gz.lock"
From bodysurf(_at_)exo(_dot_)com  Fri Jan  3 16:09:06 1997
Subject: TEST
 Folder:  gzip -fc >> $PMDIRp/headers.gz
 678
procmail: Notified comsat: "bodysurf@: gzip -fc >> $PMDIRp/headers.gz"
procmail: [10239] Fri Jan  3 16:09:08 1997
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "FROM= bodysurf"
procmail: Executing " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: [10239] Fri Jan  3 16:09:09 1997
procmail: Program failure (1) of " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: No match on " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: Locking "/u5/bodysurf/.mailbox/inbox.lock"
procmail: Assigning "LASTFOLDER=/u5/bodysurf/.mailbox/inbox"
procmail: Opening "/u5/bodysurf/.mailbox/inbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "/u5/bodysurf/.mailbox/inbox.lock"
From bodysurf  Fri Jan  3 16:09:08 1997
 Folder: /u5/bodysurf/.mailbox/inbox
  41
procmail: Notified comsat: "bodysurf(_at_)170074:/u5/bodysurf/.mailbox/inbox"

And when I make the "~/.forward" file like so:

"IFS=' ' && |/usr/local/nuglops/bin/procmail -Yf-"

all seems to work fine.  Here's the LOGFILE output now:

procmail: [17791] Fri Jan  3 16:16:01 1997
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "FROM= bodysurf(_at_)exo(_dot_)com"
procmail: Executing " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: [17791] Fri Jan  3 16:16:02 1997
procmail: Match on " echo "$FROM" | $EGREP -i -f $BASTARDLIST"
procmail: Assigning "EXITCODE=67"
procmail: Locking "/u5/bodysurf/Procmail/Private/headers.gz.lock"
procmail: Executing " gzip -fc >> $PMDIRp/headers.gz"
procmail: [17791] Fri Jan  3 16:16:03 1997
procmail: Assigning "LASTFOLDER= gzip -fc >> $PMDIRp/headers.gz"
procmail: Unlocking "/u5/bodysurf/Procmail/Private/headers.gz.lock"
From bodysurf(_at_)exo(_dot_)com  Fri Jan  3 16:16:01 1997
Subject: TEST
 Folder:  gzip -fc >> $PMDIRp/headers.gz
 689
procmail: Notified comsat: "bodysurf@: gzip -fc >> $PMDIRp/headers.gz"

Can anyone explain to me why things are acting this way.  It's almost like
PROCMAIL is getting called twice in the first "~/.forward" file.  I like
the idea of having a secondary copy of PROCMAIL called if the first copy
doesn't work, but not at the expense of "breaking" my SENDMAIL EXITCODE
bounce.

I can provide a copy of my "~/.procmailrc" file, but didn't think it
necessary for the problem to be explained/solved.

Lates!
------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
*PGP ENCRYPTED EMAIL PREFERRED*
"Finger" for PGP v2.6.3ia Public Key

<Prev in Thread] Current Thread [Next in Thread>