rem: rawData = aData.data.URL; 
add: var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); rawData = ioService.getURLSpecFromFile(aData.data); 
context:   onDrop: function (aEvent, aData, aDragSession)    {      var prettyName;      var rawData = aData.data;      switch (aData.flavour.contentType) {      case "text/x-moz-url":      case "text/x-moz-message-or-folder":        var separator = rawData.indexOf("\n");        if (separator != -1) {          prettyName = rawData.substr(separator+1);          rawData = rawData.substr(0,separator);        }        break;      case "application/x-moz-file":        rawData = aData.data.URL;        break;      }      if (!(DuplicateFileCheck(rawData)))      {        var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment);        attachment.url = rawData;        attachment.name = prettyName;        AddAttachment(attachment);      }      else {        var errorTitle = sComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle");        var errorMsg = sComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage");        if (gPromptService)          gPromptService.alert(window, errorTitle, errorMsg);        else          window.alert(errorMsg);      }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa0cc7676b744e97f9eb062c0645999b62cca6e9/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js