rem: var mailWindow = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] .getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow("mail:3pane"); 
add: var mailWindow = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService() .QueryInterface(Components.interfaces.nsIWindowMediator) .getMostRecentWindow("mail:3pane"); 
context: function QuoteSelectedMessage(){  if (gMsgCompose) {    var mailWindow = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"]                     .getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow("mail:3pane");    if (mailWindow) {      var selectedURIs = mailWindow.GetSelectedMessages();      if (selectedURIs)        for (i = 0; i < selectedURIs.length; i++)          gMsgCompose.quoteMessage(selectedURIs[i]);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2a4649ed56c013f54ac015da8c1363fce96c9cdc/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js