rem: snooze (2000000);
context: AGMSBayesianSpamFilterConfig::ShowSpamServerConfigurationWindow () {	status_t    errorCode = B_OK;	BMessage    maximizeCommand;	BMessenger	messengerToServer;	BMessage    replyMessage;	// Make sure the server is running.	if (!be_roster->IsRunning (kServerSignature)) {			errorCode = be_roster->Launch (kServerSignature);			if (errorCode != B_OK) {				BPath path;				entry_ref ref;				directory_which places[] = {B_COMMON_BIN_DIRECTORY,B_BEOS_BIN_DIRECTORY};				for (int32 i = 0; i < 2; i++) {					find_directory(places[i],&path);					path.Append("spamfilter");					if (!BEntry(path.Path()).Exists())						continue;					get_ref_for_path(path.Path(),&ref);					if ((errorCode =  be_roster->Launch (&ref)) == B_OK)						break;				}				if (errorCode != B_OK)					goto ErrorExit;			}		}		snooze (2000000);		// Set up the messenger to the database server.	messengerToServer =		BMessenger (kServerSignature);	if (!messengerToServer.IsValid ())		goto ErrorExit;	// Wait for the server to finish starting up, and for it to create the window.	snooze (2000000);	// Tell it to show its main window, in case it is hidden in server mode.	maximizeCommand.what = B_SET_PROPERTY;	maximizeCommand.AddBool ("data", false);	maximizeCommand.AddSpecifier ("Minimize");	maximizeCommand.AddSpecifier ("Window", 0L);	errorCode = messengerToServer.SendMessage (&maximizeCommand, &replyMessage);	if (errorCode != B_OK)		goto ErrorExit;	return; // Successful.ErrorExit:	(new BAlert ("SpamFilterConfig Error", "Sorry, unable to launch the "		"AGMSBayesianSpamServer program to let you edit the server "		"settings.", "Close"))->Go ();	return;}