rem: 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);  
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)    {      if (DirPaneHasFocus())        composeFields.to = GetSelectedAddressesFromDirTree();      else        composeFields.to = GetSelectedAddresses();      params.composeFields = composeFields;      msgComposeService.OpenComposeWindowWithParams(null, params);    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/307b41dbea88d2cdb6eb544b496f44439d6f4c31/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js