procmail
[Top] [All Lists]

Re: Auto-answer with attachment

2002-07-30 23:53:54
On Tue, 30 Jul 2002, Matthias Wulkow wrote:

@ Hi,
@
@ I'd like procmail to reply including an attachment. Can somebody
@ please tell me how to achieve that? By the way, just thought about
@ that: what about if somebody sends me already a mail with
@ attachment... is there a way to first delete all attachment before
@ reply?
        Here is what I use to autoreply with a PDF copy of my resume:
#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_)charm\(_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/contrib/bin/mimencode -b $HOME/saroffm.pdf;\
   echo "--fls3jekls3=_sd3--") | $SENDMAIL -t

        Where $HOME/pdf.rsp is a text message that gives where to go for
the Acrobat reader.
-- 
Matthew Saroff
At some point in the future, the total number of lawsuits being prosecuted
by the Church of Scientology will exceed the population of the world
Extrapolating on current trends, this will occur on April 1, 2005.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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