rem:  var contractid = "@mozilla.org/widget/clipboardhelper;1"; var iid = Components.interfaces.nsIClipboardHelper; var clipboard = Components.classes[contractid].getService(iid); clipboard.copyString(url); 
add: CopyString(url); 
context: function CopyMessageUrl(){  try {    var hdr = gDBView.hdrForFirstSelectedMessage;    var server = hdr.folder.server;    var url;    if (server.isSecure) {      url = "snews://";    }    else {      url = "news://"    }    url += server.hostName;    url += ":";    url += server.port;    url += "/";    url += hdr.messageId;    var contractid = "@mozilla.org/widget/clipboardhelper;1";    var iid = Components.interfaces.nsIClipboardHelper;    var clipboard = Components.classes[contractid].getService(iid);    clipboard.copyString(url);  }  catch (ex) {    dump("ex="+ex+"\n");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f5a351848e823aad2a72b7487b059e3661c43937/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js