[13111] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.7I: mailmaint

daemon@ATHENA.MIT.EDU (dkk@MIT.EDU)
Fri Jan 20 08:10:39 1995

From: dkk@MIT.EDU
Date: Fri, 20 Jan 95 08:10:33 -0500
To: bugs@MIT.EDU


System name:		imbrium
Type and version:	KN02ca 7.7I
Display type:		PMAG-DV 

What were you trying to do?
	Get a list of all public mailing lists.  The hard way.  :-)

What's wrong:
	I chose:
		"1.  Show all public mailing lists."
	then got:
		"This function may take a while... proceed? [y] "
	I hit <return>, which was treated as a "no".
	I had to type "y" to get it to do the query.

What should have happened:
	It should have registered that I hit return.  It's not 
	obvious to me from the code in moiradev why this didn't work.

Please describe any relevant documentation references:
	In /mit/moiradev/clients/mailmaint/mailmaint.c:

	472:show_all()
	473:{
	474:    char c;
	476:    show_text(DISPROW, STARTCOL, "This function may take a \
	477:while... proceed? [y] ");
	478:    c = getchar() & 0x7f;
	479:    if (c == 'y' || c == 'Y' || c == '\n') {
	480:    move(DISPROW + 1, STARTCOL);
	481:    addstr("Processing query...please hold");
	482:    refresh();
	483:    (void) list_all_groups();
	484:    }
	485:    else
	486:    erase_line(DISPROW, STARTCOL);
	487:    return;
	489:}

	What's wrong with this picture?  The code looks OK to me...

home help back first fref pref prev next nref lref last post