palmer@mwunix.mitre.org (Forrest Palmer) (10/02/90)
OK. I'm stumped on slocal/.maildelivery. Would someone please answer this
question ?
My ~/.forward file :
| /usr/local/lib/mh/slocal -user palmer
My ~/.maildelivery file (partial) :
...
Cc,xpert@expo.lcs.mit.edu,|,R,/usr/local/lib/mh/rcvstore +X -create
To,xpert@expo.lcs.mit.edu,|,R,/usr/local/lib/mh/rcvstore +X -create
...
default,-,|,R,/usr/local/lib/mh/rcvstore +inbox
default,-,|,R,"/u3/palmer/bin/EchoMail $(sender)"
default,-,|,?,"/u3/palmer/bin/NewMail Mail from $(sender) to $(address)"
*,-,|,R,rcvalert
/u3/palmer/bin/EchoMail : Takes the command line arguments ( $(sender) ) and
appends them to a file. This works.
/u3/palmer/bin/NewMail : Takes the command line arguments ( "Mail from $(sender)
to $(address) " ) and uses the X11R4 xmessage program to display it. This also
works.
All I want to do is store the message in the proper ("X") folder, append the
sender's address to a file, and display the sender's address on my console.
However, the "rcvstore" command to put the messages from "xpert" into the "X"
folder is never executed. Instead, everything is put into +inbox - TWICE! The
"X" folder does exist.
I thought that the entire ".maildelivery" file is read - this is what the
mhook(1) man page says. So what am I doing wrong?
Thanks in advance,
Forrest Palmer
palmer@mitre.org
rhall@convex.COM (Randy Hall) (10/07/90)
>Cc,xpert@expo.lcs.mit.edu,|,R,/usr/local/lib/mh/rcvstore +X -create >To,xpert@expo.lcs.mit.edu,|,R,/usr/local/lib/mh/rcvstore +X -create I think you want to put quotes around the command string like this: Cc,xpert@expo.lcs.mit.edu,|,R,"/usr/local/lib/mh/rcvstore +X -create" To,xpert@expo.lcs.mit.edu,|,R,"/usr/local/lib/mh/rcvstore +X -create" I had the same problem and that fixed it for me. Randy