procmail
[Top] [All Lists]

Need help :)

1995-12-09 15:41:54
I'm a beginner at this and I'm trying to get the following rc file to 
work.  Sendmail will not send the message, I think it's because my 
headers are not considered actual headers (if that makes sense).  I have 
included my source code and the copy that I received.

Source:

MYADDRESS=Ryan_Harper(_at_)byu(_dot_)edu

MYXLOOP="X-Loop: $MYADDRESS"

:0 H
* $ ! ^$MYXLOOP
* ^To: *request(_at_)byu(_dot_)edu
* ^Subject: *jokes +(subscribe|\unsubscribe|\who)+
{
  GETTING=$MATCH
  MYFROM="From: The Jokes Mailing List <Jokes(_at_)byu(_dot_)edu>"
  SUBJECT=`formail -xSubject`
  BOUNDARY=`formail -x'Message-Id:' | sed 's/[<>@ ]//g' | cut -c1-65`
  
  :0 fWhW
  | formail -rY -I"$MYFROM" \
                -I"Mime-Version: 1.0"\
                -I"Precedence: junk" \
                -I"$MYXLOOP" 

  BOUNDARY=`echo '' ; echo '' ; echo --$BOUNDARY`

  :0 fWbW
  | cat - ; echo "Stage 1"; cat /ee/harperr/test ; echo '' ; echo ''
  
  :0 fWb
  | cat - ;\
  echo "this is the test";\
  echo "I hope it works";\
  echo "Ryan Harper"; echo $MYADDRESS ; echo ''
  
  :0 c 
  | $SENDMAIL -oi -t
  
  
  :0
  test_folder
}

Here is the copy that came to me after I sent a message to one of my 
aliases request(_at_)byu(_dot_)edu with the subject line stating 'jokes who'

----------

Date: Sat, 9 Dec 1995 15:17:26 -0700
From: harperr(_at_)et(_dot_)byu(_dot_)edu
Subject: /ee/harperr/mail/test_folder
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

To: Ryan_Harper(_at_)byu(_dot_)edu
Subject: Re: jokes who
References: 
<Pine(_dot_)HPP(_dot_)3(_dot_)91(_dot_)951209151654(_dot_)10040J-100000(_at_)davis(_dot_)et(_dot_)byu(_dot_)edu>
In-Reply-To: 
<Pine(_dot_)HPP(_dot_)3(_dot_)91(_dot_)951209151654(_dot_)10040J-100000(_at_)davis(_dot_)et(_dot_)byu(_dot_)edu>
From: The Jokes Mailing List <Jokes(_at_)byu(_dot_)edu>
Mime-Version: 1.0
Precedence: junk
X-Loop: Ryan_Harper(_at_)byu(_dot_)edu



   ___   _  __   ____      _       
  /  o) ( \/ /  / _  )  /\/ )  Ryan Harper
 /  \/   )  /  / _  /  /   /   Ryan_Harper(_at_)byu(_dot_)edu
(_/\_)  (__/  (_/(_/  (_/\/    http://www.et.byu.edu/~harperr

Stage 1
Test 1
Test 2
Test 3


this is the test
I hope it works
Ryan Harper
Ryan_Harper(_at_)byu(_dot_)edu
---------


I would really appreciate any help to get this working!  Thanks!

   ___   _  __   ____      _       
  /  o) ( \/ /  / _  )  /\/ )  Ryan Harper
 /  \/   )  /  / _  /  /   /   Ryan_Harper(_at_)byu(_dot_)edu
(_/\_)  (__/  (_/(_/  (_/\/    http://www.et.byu.edu/~harperr

<Prev in Thread] Current Thread [Next in Thread>
  • Need help :), Ryan G Harper <=