rem: i=finduser(str); 
add: i=bbs.finduser(str); 
context: function email(){	var key;	var i;	while(1) {		if(!(user.settings & USER_EXPERT))			bbs.menu("e-mail");		// async		console.putmsg("\r\nyhE-mail: n");		key=get_next_keys("?SRFNUKQ\r");		bbs.log_key(key);		switch(key) {			case '?':				if(user.settings & USER_EXPERT)					bbs.menu("e-mail");				break;			case 'S':				console.putmsg("_\r\nbhE-mail (User name or number): w");				str=get_next_str("",40,K_UPRLWR,false);				if(str==null || str=="")					break;				if(str=="Sysop")					str="1";				if(str.search(/\@/)!=-1)					bbs.netmail(str);				else {					i=finduser(str);					if(i>0)						bbs.email(i,WM_EMAIL);				}				break;			case 'U':				console.putmsg("_\r\nbhE-mail (User name or number): w");				str=get_next_str("",40,K_UPRLWR,false);				if(str==null || str=="")					break;				if(str=="Sysop")					str="1";				if(str.search(/\@/)!=-1)					bbs.netmail(str,WM_FILE);				else {					i=finduser(str);					if(i>0)						bbs.email(i,WM_EMAIL|WM_FILE);				}				break;			case 'R':				bbs.read_mail(MAIL_YOUR);				break;			case 'F':				bbs.email(1,WM_EMAIL,bbs.text(ReFeedback));				break;			case 'N':				if(console.noyes("\r\nAttach a file"))					i=WM_FILE;				else					i=0;				console.putmsg(bbs.text(EnterNetMailAddress),P_SAVEATR);				str=get_next_str("",60,K_LINE,false);				if(str!=null && str !="")					bbs.netmail(str,i);				break;			case 'K':				bbs.read_mail(MAIL_SENT);				break;			case 'Q':			default:				return;		}	}	return}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/7725dd9cfd6defe4664a4532784e709e94c952e3/classic_shell.js/buggy/classic_shell.js