Monday, November 08, 2010 at 12:04 AM.


on deleteMessage (msgNum, adrRoot=nil) {
	<<Delete a message in a discussion group. Just mark its storage deleted, leave it in the tree.
			<<06/01/00; 5:31:30 PM by PBS
				<<adrRoot is a new optional parameter. It's the address of the discussion group to use. Pass this parameter when calling this script from outside a website framework rendering context -- otherwise this script will delete a message in the wrong discussion group.
	local (adrMsgTable = mainResponder.discuss.getMessageTable (msgNum, adrRoot:adrRoot));
	adrMsgTable^.flDeleted = true;
	adrMsgTable^.inResponseTo = -2;
	return (adrMsgTable)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.