rem: composeFields.to = GetSelectedAddresses(); 
add: if (DirPaneHasFocus()) composeFields.to = GetSelectedAddressesFromDirTree(); else composeFields.to = GetSelectedAddresses(); 
context: function AbNewMessage(){  var msgComposeType = Components.interfaces.nsIMsgCompType;  var msgComposFormat = Components.interfaces.nsIMsgCompFormat;  var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();  msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);  var params = Components.classes["@mozilla.org/messengercompose/composeparams;1"].createInstance(Components.interfaces.nsIMsgComposeParams);  if (params)  {    params.type = msgComposeType.New;    params.format = msgComposFormat.Default;    var composeFields = Components.classes["@mozilla.org/messengercompose/composefields;1"].createInstance(Components.interfaces.nsIMsgCompFields);    if (composeFields)    {      composeFields.to = GetSelectedAddresses();      params.composeFields = composeFields;      msgComposeService.OpenComposeWindowWithParams(null, params);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/753b967403faaa136b682728d3dfc1a4607ad581/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js