[comp.mail.mh] SLOCAL's strange behavior

luj@gus16.ecn.purdue.edu (Jun Lu) (05/05/91)

How should slocal behave when the action performed failed ? 

one line in my .maildelivery reads as follows:

# ....
Subject "foo"          |       A  "/home/gus2/luj/bin/foobar"
# ....


The short script foobar tests if an incoming mail has subject "foo". If it has
subject like "foo", foobar exits with status 0; otherwise it exits with status 
non-zero(in the case the subject is something like "foobar" or "foo bar"
...).

I put the slocal in the debug mode and pipe a test mail to slocal, finding that:

	1. If the action succeeds(ie. the the incoming mail has exact
	subject line "foo"), everything is fine and slocal happily prints
	out message "wins". No surprise. 
	2. If the action failed, slocal prints out following stuff:
--------------- excerpts --------
vars[4]: name="info" value=""
        delivering to pipe "/home/gus2/luj/bin/mail_test_ack", loses: Exit 1
(trying normal delivery)
        delivering to file "@(MHDROPATH)/@(MHDROPFIL)" (uucp style), unable
to open:No such file or directory
_______________
And if the mail was originated from someone, he would receive the complaints
from MAILER_DAEMON, complaining about unknown error from 
"..../slocal -user luj"

	3. If I change "A" into "R" in the .maildelivery, everything would
be OK as expected.


Can someone tell me what goes wrong or point me to the right direction ?

Thanks a lot,
-- Jun

.PS. I'm using MH on a sun3 with the options:
version: MH 6.7.1 #18[UCI] (helios) of Wed Mar 6 12:57:23 EST
199
1
options: [BSD42] [BSD43] [BIND] [ISI] [MHE] [MHRC] [RPATHS]
         [SBACKUP='"#"'] [SUN40] [TYPESIG=void] [SENDMTS] [SMTP]
--
-- Jun Lu                          Internet:luj@ecn.purdue.edu          --
-- Aeronautics & Astronautics      Bitnet:  luj%ecn.purdue.edu@purccvm  --
-- Purdue University               UUCP:    pur-ee!luj                  -- 
-- W. Lafayette, IN 47907          Phone:317-494-9410  Fax:317-494-0307 --