rem: AddAttachment(rawData, prettyName); 
add: { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = rawData; attachment.name = prettyName; AddAttachment(attachment); } 
context:   onDrop: function (aEvent, aData, aDragSession)    {      var prettyName;      var rawData = aData.data;      switch (aData.flavour.contentType) {      case "text/x-moz-url":      case "text/nsmessageOrFolder":        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)))        AddAttachment(rawData, prettyName);      else {        var errorTitle = gComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle");        var errorMsg = gComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage");        if (!gPromptService) {          gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();          gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);        }        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/ed58417ba833e0302e6395eaaff3785027d2f73b/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js