procmail
[Top] [All Lists]

Re: Problem running from within recipe

2002-11-07 15:51:18
would that be because procmail is running as a user that doesn't have
access to that dir or executable?

mp

On Thu, Nov 07, 2002 at 05:13:58PM -0500, Matthew G. Saroff wrote:
      My ISP just upgraded servers, and I've been changing recipes and
variables to account for new file locations. Most of it works, but I have
trouble with an autoresponder that uses mmencode, to send a PDF copy of my
resume.  It does not seem to be able to find the mmencode executable. Here
is the recipe:

#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_)charm(_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/local/bin/mmencode -b $HOME/saroffm.pdf;\
   echo "--fls3jekls3=_sd3--") | $SENDMAIL -t

      The message is fine, but the attachment is truncated and screwed
up.
      I get the following error:
  Total  Number Folder
  -----  ------ ------
      0       1  ## /usr/local/bin/mmencode: not found
   1988       1 /var/mail/msaroff
  -----  ------
   1988       2

      That is where mmencode is located, and I can run it from the
command line, so I'm wondering why this is not working.

-- 
  Matthew Saroff


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

_______________________________________________
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>