rem:  header.subject=header.subject.replace(RegExp("\\["+listname+"\\]\\s*"), ""); 
add:  header.subject=header.subject.replace(RegExp("\\["+list.name+"\\]\\s*"), ""); 
context: function process_contribution(header, body, list){	// ToDo: apply filtering here?	var user_list = get_user_list(list);	// verify author/sender is a list subscriber here	if(find_user(user_list, sender_address)==-1) {		error_file.writeln(log(LOG_WARNING,format("ListServer: %s !ERROR %s is not a subscriber"			,list.name, sender_address)));//		error_file.writeln();//		error_file.writeln("To subscribe to this list, send an e-mail to " //			+ listserver_address);//		error_file.writeln("with \"subscribe " + list.name + "\" in the message body.");		return(false);	}	var msgbase=new MsgBase(list.sub);	if(!msgbase.open()) {		error_file.writeln(log(LOG_ERR,format("ListServer: %s !ERROR %s opening msgbase: %s"			,list.name, msgbase.error, list.sub)));		return(false);	}	if(msg_area.sub[list.sub.toLowerCase()].is_moderated)		header.attr |= MSG_MODERATED;	// Remove [listname] from imported subject	header.subject=header.subject.replace(RegExp("\\["+listname+"\\]\\s*"), "");	if(!msgbase.save_msg(header, body.join('\r\n'))) {		log(LOG_ERR,format("ListServer: %s !ERROR %s saving message to sub: %s"			,list.name, msgbase.error, list.sub));		return(false);	}	return(true);}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/bd99cac426357b1b140b454706588ee5045da415/listserver.js/clean/listserver.js