procmail
[Top] [All Lists]

Help With Autoresponder

1997-05-01 13:05:00

Here's part of a recipe I've modified to use as an autoresponder and an 
email ftp server, which I snipped off the end. I want the thing to serve 
two lists, one named joke-l and the other joke-lmod. When a command is 
sent to joke-lmod it attaches the text from joke-l also. Am I dealing 
with a really bad choice of listnames or can someone show me how to get 
it to work?


--

:0 H
* $ ! ^$MYXLOOP
* ! ^FROM_DAEMON


* ^Subject: *(get|send|mail|gimme)\/( +(help|\
                        faq|\
                        joke-lmod|\
                        joke-l|\
                        archives.*))+

{
        # it is a pretty safe bet that this recipe is supposed to 
        # be an automagical reply server.
        # Therefore, this is the place to define the appropriate 
        # constants.


        GETTING=$MATCH          # What got me here?
        MYFROM="From: Listserv <$ME>"
        SUBJECT=`formail -xSubject`
        BOUNDARY=`formail -x'Message-Id:' | sed 's/[<>@ ]//g' | cut -c1-65`


        # Now we futz with logs for a little while
        LOGFILE=
  AUTOREPLYLOG=$PMDIR/autoreply-log.txt

  :0 ch:
  $AUTOREPLYLOG

        # This is how I get real headers.
        :0 fhW
        | formail -rY -I"$MYFROM" \
                -I"Mime-Version: 1.0"\
                -I"Content-Type: multipart/mixed; boundary=\"$BOUNDARY\""\
                -I"Precedence: junk" \
                -I"$MYXLOOP" 

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

        :0 fbW
        | echo '' ; \
        echo 'This is multi-part MIME.' ;\
        echo $BOUNDARY ;\
        echo '' ;\
        echo 'This is a autoresponse to commands you sent to Listserv:';\
        echo '' ;\
        echo '' ; echo "                $SUBJECT";\
        echo '' ;\
        echo '' ;\
        echo '' ;\
        echo '' 


######### Listserv Joke-Lmod
        :0 fWb
        * GETTING ?? joke-lmod
        | cat - ; echo $BOUNDARY ;\
          echo "Content-Type: text/plain " ;\
          echo "Content-Description:  Listserv Joke-Lmod Intro" ;\
          echo '' ; \
          cat $PMDIR/files/joke-lmod.txt ; echo ''

######### Listserv Joke-L
        :0 fWb
        * GETTING ?? joke-l
        | cat - ; echo $BOUNDARY ;\
          echo "Content-Type: text/plain " ;\
          echo "Content-Description:  Listserv Joke-L Intro" ;\
          echo '' ; \
          cat $PMDIR/files/joke-l.txt ; echo ''


--


Regards,

Dave/Webmaster

                VserV Inc. | Enjoy Great Humor?
            www.v-serv.com | Join Joke-L
Commercial Website Hosting | Listserv <listserv(_at_)ddave(_dot_)com>

   "I love the smell of SPAMMER frying in the morning."
         Wagner playing in the background...

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