procmail
[Top] [All Lists]

Re: AutoResponders

1999-04-12 16:06:39
On Apr 12,  2:09pm, Heber Reynoso wrote:
Subject: AutoResponders
Hi there,

I am having a problem configuring the procmail program to send an
autoresponder.
I am using the following files and info:

.procmailrc

#---.procmailrc----
SHELL=/bin/sh
VERBOSE=off
SENDMAIL=/usr/sbin/sendmail
MAILDIR=/var/mail
PMDIR=$HOME/.procmail
#LOGFILE=$PMDIR/log
FILEDIR=$HOME/autores

# To setup your autoresponder, replace all occurances of 
user(_at_)domain(_dot_)com
# with your email address. Then create a file in the autores directory
# (this should already exist off of your home directory) named info.txt
# that contains the message you want in your automatic response.
#
# Remove all the "#"s from the section below to start the autoresponder.

:0 h c
* ^TO*
*!^FROM_DAEMON
*!^X-Loop: j(_dot_)r(_dot_)(_at_)jrgetches(_dot_)com
# You should excape the periods, it should read *!^X-Loop:
j\(_dot_)r\(_dot_)(_at_)jrgetches\(_dot_)com
|(formail -r -A "Precedence: junk" \
-I"From:j(_dot_)r(_dot_)(_at_)jrgetches(_dot_)com" \
-I"Subject: Thanks For Contacting Us" \
-A "X-Loop: j(_dot_)r(_dot_)(_at_)jrgetches(_dot_)com" ; \
#I think that you need a blank line here, I always but an
echo "";\
#in between the header and the body.

cat $FILEDIR/autoresponse.txt) | $SENDMAIL -t

Here is a copy of my autoresponder file, which sends a MIME encoded file, and a
text explaination.
#This sends my resume as a mime attachment to anyone who wants a
#copy of my resume in PDF (Acrobat) format
:0ch
* ^Subject:.*send pdf resume
* !^X-Loop: msaroff(_at_)pca\(_dot_)net
| (formail -r \
     -I"X-Loop: msaroff(_at_)pca(_dot_)net"\
     -I"MIME-Version: 1.0"\
     -I"Content-Type: multipart/mixed; boundary=\"fls3jekls3=_sd3\"";\
   echo "--fls3jekls3=_sd3";\
   echo "Content-type: TEXT/PLAIN; charset=US-ASCII";\
   echo "";\
   cat $HOME/pdf.rsp;\
   echo "--fls3jekls3=_sd3";\
   echo "Content-Type: APPLICATION/PDF; name=\"saroffm.pdf\"";\
   echo "Content-Transfer-Encoding: base64";\
   echo "Content-Description:";\
   echo "";\
   /usr/bin/mimencode -b $HOME/saroffm.pdf;\
   echo "--fls3jekls3=_sd3--") | $SENDMAIL -t

-- 
Matthew Saroff
Do not reply directly to this message.  Reply to
msaroff(_at_)pobox(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>
  • AutoResponders, Heber Reynoso
    • Message not available
      • Re: AutoResponders, Matthew Saroff <=