procmail
[Top] [All Lists]

Re: Procmail problem

1996-02-05 12:38:10
It seems that my litle recipe (found below) sends my SENDMAIL into a 
great loop!

May I ask for some assistance in this.

Thank you.

Walter Torres


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
NEXUS Chicago                   312-318-1200           http://www.nexchi.com
Chicagos Community-based Internet Provider                   
info(_at_)nexchi(_dot_)com


####################### #  Standard environment 
variables #

PATH=$HOME/bin-sun4:/usr/bin:/usr/ucb:bin:usr/local/bin:.
MAILDIR=$HOME/mail
LOGFILE=$HOME/mail/procmail.log


#######################
#  Process messages requesting registration for NEXUS Chicago
#

:0
*!^Subject:.*Re:
*!^FROM_DAEMON
*^To:.*info@

{
  INFO_FILE="$HOME/mail-reply/nexus-info"
  SUBJ="Subject: re: NEXUS Chicago Info (automated reply)"
  FROM="info(_at_)nexchi(_dot_)com"
  REPLY="marketing(_at_)nexchi(_dot_)com"
  :0 c
  | (formail -rt -I "$SUBJ" \
                 -I "From: $FROM" \
                 -I "Reply-To: $REPLY"; \
     cat $INFO_FILE \
    ) | $SENDMAIL -oi -t
  :0 h:
  $MAILDIR/info_req_log
}


#######################
# This should forward all other mail to me...

:0
/usr/spool/mail/walter


#
# EOF
#######################



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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