procmail
[Top] [All Lists]

Re: It should have worked?

2002-08-12 22:27:54
On Mon, Aug 12, 2002 at 10:00:19AM +0100, Martin McCarthy wrote:

Add the quotes here.  So that you have:

 | mimedecode > "${DELIVERY_DIR}/$FILE"

   Thanks Martin,

      That fixed it, so long as I leave in the "tr" line, since the
filename match includes quotes, and procmail quotes unconditionally,
creating:

procmail: Matched ""Old vege gardenPush up yards.doc""

   and so the shell sees a null string, I think (see log below):

/bin/bash: /vp/projects/n2ip_nms/admin/: Is a directory

   Converting the mess to:

   "'Old vege gardenPush up yards.doc'"

   works (with the help of your suggestion). Eliminating one set of
quotes would probably work equally well.


Log for quotes on the script's delivery line, and no other quote
manipulation:
----------------------------------------------------------------
procmail: Assigning "LOG=erik(_at_)dd(_dot_)nec(_dot_)com(_dot_)au"
erik(_at_)dd(_dot_)nec(_dot_)com(_dot_)auprocmail: Assigning 
"PROJ_DIR=/vp/projects"
procmail: Match on "^Received:.*"
procmail: Assigning "MATCH="
procmail: Matched "n2ip_nms"
procmail: Match on "^Subject:[   ]*Project[^:]*:[   ]*\/[^   ]+"
procmail: Assigning "PROJECT=n2ip_nms"
procmail: Executing " test -d $PROJ_DIR/$PROJECT/admin"
procmail: Match on " test -d $PROJ_DIR/$PROJECT/admin"
procmail: Assigning "DELIVERY_DIR=/vp/projects/n2ip_nms/admin"
procmail: Assigning "MATCH="
procmail: Matched ""Old vege gardenPush up yards.doc""
procmail: Match on "^Content-Disposition: attachment; filename=\/.*"
procmail: Assigning "LOG=/vp/projects/n2ip_nms/admin/"
/vp/projects/n2ip_nms/admin/procmail: Executing " mimedecode > 
"${DELIVERY_DIR}/$FILE""
/bin/bash: /vp/projects/n2ip_nms/admin/: Is a directory
procmail: Error while writing to " mimedecode > "${DELIVERY_DIR}/$FILE""
procmail: Assigning "LASTFOLDER= mimedecode > "${DELIVERY_DIR}/$FILE""
procmail: Executing " echo $FILE | mail -s "Document Lodgement Failed" $SENDER"
procmail: Match on " echo $FILE | mail -s "Document Lodgement Failed" $SENDER"
procmail: Assigning "LASTFOLDER=/dev/null"

Thanks & Regards,
Erik


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