procmail
[Top] [All Lists]

Re: Problem running from within recipe

2002-11-09 11:34:38
        I don't think so.
        Here are the permissions:
-r-xr-xr-x  2 bin  bin  4064 Jun 15  1998 /usr/contrib/bin/mmencode
On Thu, 7 Nov 2002, Michael Powe wrote:

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


-- 
  Matthew Saroff  | Standard Disclaimer:  Not only do I speak for
       _____      | No one else, I don't even Speak for me.  All my
      / o o \     | personalities and the spirits that I channel
______|_____|_____| disavow all knowledge of my activities. ;-)
   uuu   U   uuu  |
                  | In fact, all my personalities and channeled spirits
Saroff wuz here   | hate my guts. (Well, maybe with garlic & butter...)
For law enforcement officials monitoring the net: abortion, marijuana,
cocaine, CIA, plutonium, ammonium nitrate, militia, DEA, NSA, PGP, hacker,
assassinate, Osama, Al Queida, Palestinian, Daisy Cutter, 911, suicide
bomber, Taliban, George Bush is a Twinkie, Anthrax, Uranium, Thorium.

Send suggestions for new and interesting words to:
msaroff(_at_)123456(_dot_)pobox(_dot_)com(_dot_) (remove the numbers to reply)
Check http://www.pobox.com/~msaroff, including The Bad Hair Web Page



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