procmail
[Top] [All Lists]

auto reply recipe

1996-07-09 19:57:56

Hi,

Im having trouble figuring out a basic error.  Why isnt the following
recipe working?  Also, i dont understand why in many examples the
recipes have :0 instead of :# where # is some number.  My formula
below works if i place it in a sh script file and pipe a email text
message into the script. I have the following in my .procmailrc :
        
        PATH=/bin:/usr/bin:/depot/misc/bin:/usr/lib/
        MAILDIR=$HOME/Mail        #you'd better make sure it exists
        LOGFILE=$MAILDIR/log      #recommended
        SENDMAIL=/usr/lib/sendmail
        FORMAIL=/depot/misc/bin/formail
        
        :1 h c
        ^Subject:.*treply
        | ($FORMAIL -rk  -p ">  " -I "X-Replier: Automated response" \
                -i "From: bumble(_at_)cse(_dot_)psu(_dot_)edu" \
                -i "Subject:automated response test"; \
                cat $HOME/Mail/reply; \
                echo " "; \
                cat $HOME/.signature) | $SENDMAIL -t


In my log file i get the following error:

        procmail: Error while writing to " ($FORMAIL -rk  -p ">  " -I 
"X-Replier: Automated response" \
                -i "From: bumble(_at_)cse(_dot_)psu(_dot_)edu" \
                -i "Subject:automated response test"; \
                cat $HOME/Mail/reply; \
                echo " "; \
                cat $HOME/.signature) | $SENDMAIL -t"
        From bumble  Tue Jul  9 22:49:21 1996
         Subject: treply 3
          Folder: /usr/mail/bumble                                              
    505
        
thanks for any assistance,

marc

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