procmail
[Top] [All Lists]

Re: System recipie

1996-08-08 18:50:44
Ok, I'm stumped. Would someone please point out to me my obvious fault of 
which I cannot see? 

Well, if you read the error messages from procmail carefully, it *is*
pretty obvious.  You quoted the entire command and its arguments causing
the entire string to be treated as the command itself (ie: the command
path).

In other words:

    :0
    | command arg1 arg2 arg3 ...

is NOT the same as:

    :0
    | "command arg1 arg2 arg3 ..."

The latter will almost certainly not work. 

Read the lines marked "--->" below.

        > procmail: Assigning "INCLUDERC=/var/log/procmail/rc.main"
        > procmail: No match on "^To: [0-9]"
        > procmail: Assigning "TO="
        > procmail: Executing "/usr/local/bin/formail,-xTo:"
--->    > procmail: Executing "/bin/mail -d  smmi"
--->    > /bin/mail -d  smmi: /bin/mail -d  smmi: cannot open
--->    > procmail: Error while writing to "/bin/mail -d  smmi"
--->    > procmail: Assigning "LASTFOLDER=/bin/mail -d  smmi"
        > >From micah(_at_)smmedia(_dot_)com  Fri Aug  9 08:20:24 1996
        >  Subject: test
        >   Folder: /usr/mail/smmi
        > 
        > 
        > Here is my recipie:
        > 
        > 
        > :0
        > * ^To: [0-9]
        > {
        >         :0
        >         ! micah(_at_)smmedia(_dot_)com
        > }
        >  
        > :0
        > {
        > :0 h
        > TO=|/usr/local/bin/formail -xTo:
        >  

And here is the quoted command string:

        > :0
--->    > |"/bin/mail -d $TO"
        > }

G'luck!

_____________________________________________________________________
Alan Stebbens           <stebbens(_at_)sgi(_dot_)com>             (415) 933-6437
Digital TV, Silicon Interactive Group,  Silicon Graphics, Inc.  (SGI)
M/S:9L991,     2011 N. Shoreline Blvd.,     Mountain View, CA   94043
PGP Key Fingerprint: 94 A7 4B AB 1C F0 4D 92  DD BC B5 D7 11 A0 DC B3

<Prev in Thread] Current Thread [Next in Thread>
  • System recipie, Micah Anderson
    • Re: System recipie, Alan Stebbens <stebbens(_at_)anywhere(_dot_)engr(_dot_)sgi(_dot_)com> <=