rem: newsgroup = folder.name; 
add: newsgroup = server.hostName + "/" + folder.name; 
context:  function ComposeMessage(type, format, folder, messageArray) //type is a nsIMsgCompType and format is a nsIMsgCompFormat{	var msgComposeType = Components.interfaces.nsIMsgCompType;	var identity = null;	var newsgroup = null;	var server;	dump("ComposeMessage folder="+folder+"\n");	try 	{		if(folder)		{			// get the incoming server associated with this uri			server = folder.server;			// if they hit new or reply and they are reading a newsgroup			// turn this into a new post or a reply to group.			if (server.type == "nntp")			{			    if (type == msgComposeType.Reply)			        type = msgComposeType.ReplyToGroup;			    else			        if (type == msgComposeType.New)			        {					    type = msgComposeType.NewsPost;   					if (folder.isServer)     						newsgroup = "";    					else           					newsgroup = folder.name; 				    }			}	        identity = getIdentityForServer(server);		    // dump("identity = " + identity + "\n");		}        	}	catch (ex) 	{        	dump("failed to get an identity to pre-select: " + ex + "\n");	}	dump("\nComposeMessage from XUL: " + identity + "\n");	var uri = null;	if (! msgComposeService)	{		dump("### msgComposeService is invalid\n");		return;	}		if (type == msgComposeType.New) //new message	{		//dump("OpenComposeWindow with " + identity + "\n");		msgComposeService.OpenComposeWindow(null, null, type, format, identity);		return;	}        else if (type == msgComposeType.NewsPost) 	{		dump("OpenComposeWindow with " + identity + " and " + newsgroup + "\n");		msgComposeService.OpenComposeWindow(null, newsgroup, type, format, identity);		return;	}			messenger.SetWindow(window, msgWindow);				var object = null;		if (messageArray && messageArray.length > 0)	{		uri = "";		for (var i = 0; i < messageArray.length && i < 8; i ++)		{				var messageResource = messageArray[i].QueryInterface(Components.interfaces.nsIRDFResource);			var messageUri = messageResource.Value;			dump('i = '+ i);			dump('\n');							if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type == msgComposeType.ForwardInline ||				type == msgComposeType.ReplyToGroup || type == msgComposeType.ReplyToSenderAndGroup ||				type == msgComposeType.Template || type == msgComposeType.Draft)			{				msgComposeService.OpenComposeWindow(null, messageUri, type, format, identity);			}			else			{				if (i) 					uri += ","				uri += messageUri;			}		}		if (type == msgComposeType.ForwardAsAttachment)		{			msgComposeService.OpenComposeWindow(null, uri, type, format, identity);		}	}	else		dump("### nodeList is invalid\n");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/71c1f4be1da3d76cd947d6c5203ac3113b0d227e/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js