rem: var currentAttachment = ioService.getURLSpecFromFile(currentFile); 
add: var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); var currentAttachment = fileHandler.getURLSpecFromFile(currentFile); 
context: function AttachFile(){  var attachments;    //Get file using nsIFilePicker and convert to URL  try {      var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);      fp.init(window, sComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpenMultiple);            var lastDirectory = GetLastAttachDirectory();      if (lastDirectory)         fp.displayDirectory = lastDirectory;      fp.appendFilters(nsIFilePicker.filterAll);      if (fp.show() == nsIFilePicker.returnOK) {        attachments = fp.files;      }  }  catch (ex) {    dump("failed to get attachments: " + ex + "\n");  }  if (!attachments || !attachments.hasMoreElements())    return;  var haveSetAttachDirectory = false;  while (attachments.hasMoreElements()) {    var currentFile = attachments.getNext().QueryInterface(Components.interfaces.nsILocalFile);    if (!haveSetAttachDirectory) {      SetLastAttachDirectory(currentFile);      haveSetAttachDirectory = true;    }    var ioService = Components.classes["@mozilla.org/network/io-service;1"]    ioService = ioService.getService(Components.interfaces.nsIIOService);    var currentAttachment = ioService.getURLSpecFromFile(currentFile);    if (!DuplicateFileCheck(currentAttachment)) {      var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment);      attachment.url = currentAttachment;      AddAttachment(attachment);      gContentChanged = true;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6930b7e8b064b669e7f0107300e30cbd8cca1f26/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js