procmail
[Top] [All Lists]

Recipe syntax problem

1997-04-05 11:40:00
HI,

I'm having a problem with figuring out why a simple change to the recipe
format is causing me so much grief (I've lost a few emails because of it
:^( ).  I know about the saying "If it ain't broke, the don't fix it."  I
just made this change to make the syntax of all my recipes the same.  I
originally grabbed this from another local user here at NetCom.

This is the pertinent section of the "~/.procmailrc" file:

        # Initialize FORMAIL variable:
        :
        ? test -x /usr/local/nuglops/bin/formail
        { FORMAIL=/usr/local/nuglops/bin/formail }
        :E
        { FORMAIL=`ksh -c "echo ~vjl/bin/formail"` }

and this is the associated pertinent section of the logfile output:

procmail: Executing "test,-x,/usr/local/nuglops/bin/formail"
procmail: Match on "test -x /usr/local/nuglops/bin/formail"
procmail: Assigning "FORMAIL=/usr/local/nuglops/bin/formail"

Everything above is fine and my "~/.procmailrc" file works as I want it
to.

==========

Ok, now I make the following change to that section of the
"~/.procmailrc" file (adding the '0' to the lines marking the beginning
of a recipe -- lines 2 and 5 below) and all my emails get trashed:

        # Initialize FORMAIL variable:
        :0
        ? test -x /usr/local/nuglops/bin/formail
        { FORMAIL=/usr/local/nuglops/bin/formail }
        :0 E
        { FORMAIL=`ksh -c "echo ~vjl/bin/formail"` }

and here is the pertinent section of the logfile output:

[snip]

procmail: Skipped "test -x /usr/local/nuglops/bin/formail"
procmail: Assigning "LASTFOLDER=?"
procmail: Opening "?"
procmail: Acquiring kernel-lock
From bodysurf  Sat Apr  5 09:40:54 1997
 Subject: TEST #2
  Folder: ?                                                               911
procmail: Notified comsat: "bodysurf(_at_)56206:/u5/bodysurf/Mail/?"

I can include the entire logfile and "~/.procmailrc" files, but these
*seemed* to be (as I said) the pertinent sections and should (I think)
give enough information to point out my error. Can anyone shed some
light into why what I did is causing this problem?

Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>                          
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID 
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91  49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------

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