procmail
[Top] [All Lists]

Re: help! procmail stops in the middle of my recipe

2002-07-05 06:28:02
On  5 Jul, procmail wrote:
| [snip repeat of message that's been answered already]

Bart Schaefer answered this two days ago.  When you execute the
"build_domain" script, that IS the delivery of the message as far as
procmail is concerned. So the log entries you're sending prove that
procmail IS NOT stopping in the middle of your recipe, but doing
exactly what you're asking it to do.

The problem would appear to be one of your expectations. I'm GUESSING
it's one of two things.  Either you're not getting the output you expect
from "build_domain", which would be a problem with that script and not
with procmail; or you're expecting the original message to also be
delivered intact (which would seem to make sense anyway).  If the
latter, that was preemptively answered by me 3 days ago. From that
message:

|   :0ci
|   | /usr/local/adm/build_domain ${NEWDOM:-unknown} ${CONTACT:-unknown} \
|     ${EMAIL:-unknown} ${PHONE:-unknown} ${ORG:-unknown} \
|     ${NEWHOST:-unknown} ${IPADDRESS:-unknown} ${CNAME:-unknown}
|   :0
|   $DEFAULT
|
|[...]
| Lastly, I made the pipe to your script a "c"opy|clone recipe with the
| original delivered to $DEFAULT.  That would seem prudent under the
| circumstances.  At least that way you can recover manually if this
| blows up.
| 

N.B. The recipe quoted above DOES NOT include quotes around the
variables as Philip correctly suggested (i.e. do not copy/paste this
example).  The point here is the "c" flag and the additional recipe
delivering to $DEFAULT.  That will run your script AND deliver the
original.

If neither of my guesses is correct, you'll need to supply more
information.

-- 
Reply to list please, or append "8" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.


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