Hi,
I have the following procmail recipe that should generate a MIME
message as an autoresponse to a message. The response works fine, but the
MIME part seems to be broken.
I've looked, but I don't see the problem. Does anyone out there
see what's wrong? The depending on hte mailer, the attachment is part of
the body with separators, or a 0 lengh attachment.
Recipe begins:
======================================================
#This sends my resume as a mime attachment to anyone who wants a
#postscript copy zipped to save space
#| (formail -rt -I"From: you(_at_)your(_dot_)site"\
:0ch
* ^Subject:.*send me zip ps 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 "Hi,";\
echo " Here is the file that you requested. This is my resume";\
echo "in PostScript format and zipped to save space.";\
echo " If you are using Eudora, you will find a file called";\
echo "res.zip. If you unzip this file, you will create a file called";\
echo "res.ps. If you send res.ps directly to any PostScript printer,";\
echo "you will print out a copy of my resume at that printer's";\
echo "resolution.";\
echo "";\
echo "--Matthew Saroff";\
echo "--fls3jekls3=_sd3";\
echo "Content-Type: application/zip";\
echo "Content-Transfer-Encoding: base64";\
echo "Content-Disposition: attachment; filename=\"res.zip\"";\
echo "Content-Description: the postscript zip file you asked for";\
/usr/bin/mimencode -b $HOME/res.zip;\
echo "--fls3jekls3=_sd3--") | $SENDMAIL -t