procmail
[Top] [All Lists]

Help

1997-01-21 08:56:08
Need help with following rc. I'm a procmail newbie and struggling a bit
with the {} construct vs. 0:c carbon option. When rc parses as below,
only the first cat command gets executed. Should I use the "c" on 2nd
and 3rd recipes? Thanks in advance for any help.

PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail      
DEFAULT=$MAILDIR/mbox
VERBOSE=on
LOGFILE=$HOME/proc.log
XREFTKT=`/usr/procmail/bin/formail -xSubject:`
EMAILID=`date -u +%j%H%M%S`$$ #create unique mail fileid
:0
* ^Subject:.*EMRS
{
   :0 #store original email
   | cat > $HOME/$EMAILID 

   :0 #create formatted email to send to ARSystem
   | (echo "!536870961!:$XREFTKT"; \
     echo "!536870940!:$EMAILID";cat $HOME/tkt.exp; echo "!536870930!:";
\
     /usr/procmail/bin/formail -I "" -s awk -f $HOME/dk.awk) \
   | mail ARSystem

  :0 # Send confirmation message
   * !^FROM_DAEMON
   * !X-Loop: dnking(_at_)ec-mail
   | (/usr/procmail/bin/formail -r -A"Precendence: junk" \
      -A"X-Loop: dnking(_at_)ec-mail" \
      -A"To: dnking(_at_)ec-mail" ; \
      echo "Mail Received.") | /usr/lib/sendmail -t
}

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