[comp.unix.xenix] Need help with SCO's mmdf

bobh@txsil.UUCP (Bob Hallissy) (11/30/89)

I have SCO Unix V/386 3.2.2, but I suspect some of you Xenix folks will
be able to help me. Thanks.

I'm trying to add my own new channel to mmdf. I have successfully added
the appropriate stuff to mmdftailor and my stubbed-out channel program
actually gets run. But nowhere can I find any documentation on the calling 
conventions/responsibilities for a channel program. I've sleuthed out the
following:

	argv[0]	is the channel name

  atoi(argv[1])	is the file descriptor of a pipe that is open
		for reading. I see a line such as:

		    msg "msg.aa03232" "mmdf@txsil.uucp"
		
		if I read as much as I can from the pipe. The first
		quoted string is the message name, the second is the
		message author.
	
  atoi(argv[2])	is also the file descriptor of a pipe, apparently
		open for writing. I suspect I'm supposed to send
		some result codes down it.
	
	argv[3] holds options passed to the channel program from
		deliver, such as the -w (watch) option. 

Can someone enlighten me as to:

    What exactly are the possible messages that get received and sent 
    over the pipes?

    What are my channel program's responsibilities (eg., removing message
    files after successful transmission)?

Thanks for any light you can shed.
-- 
Bob Hallissy
Summer Institute of Linguistics  PHONE: 214-709-3319        
7500 W. Camp Wisdom Road          UUCP: ...!{texbell|convex|pollux}!txsil!bobh
Dallas, TX 75236              Internet: bobh@txsil.lonestar.org