rem: item.setAttribute("label", attachment.name); 
add: var item = bucket.appendItem(attachment.name, ""); 
context: function AddAttachment(attachment){  if (attachment && attachment.url)  {    var bucket = document.getElementById("attachmentBucket");    var item = document.createElement("listitem");    if (!attachment.name)      attachment.name = gMsgCompose.AttachmentPrettyName(attachment.url, null);    // for security reasons, don't allow *-message:// uris to leak out    // we don't want to reveal the .slt path (for mailbox://), or the username or hostname    var messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i;    if (messagePrefix.test(attachment.name))      attachment.name = sComposeMsgsBundle.getString("messageAttachmentSafeName");    else {      // for security reasons, don't allow mail protocol uris to leak out      // we don't want to reveal the .slt path (for mailbox://), or the username or hostname      var mailProtocol = /^mailbox:|^imap:|^s?news:/i;      if (mailProtocol.test(attachment.name))        attachment.name = sComposeMsgsBundle.getString("partAttachmentSafeName");    }    item.setAttribute("label", attachment.name);    //use for display only    item.attachment = attachment;   //full attachment object stored here    try {      item.setAttribute("tooltiptext", decodeURI(attachment.url));    } catch(e) {      item.setAttribute("tooltiptext", attachment.url);    }    item.setAttribute("class", "listitem-iconic");    var url = gIOService.newURI(attachment.url, null, null);    try     {      url = url.QueryInterface( Components.interfaces.nsIURL );    }    catch (ex)    {      url = null;    }        // for local file urls, we are better off using the full file url because moz-icon will    // actually resolve the file url and get the right icon from the file url. All other urls, we should    // try to extract the file name from them. This fixes issues were an icon wasn't showing up if you dragged    // a web url that had a query or reference string after the file name and for mailnews urls were the filename    // is hidden in the url as a &filename= part.    if (url && url.fileName && !url.schemeIs("file"))       item.setAttribute("image", "moz-icon://" + url.fileName);    else            item.setAttribute("image", "moz-icon:" + attachment.url);        bucket.appendChild(item);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e4fe9f4c016d51928b00ca063046836dc4caea5d/MsgComposeCommands.js/clean/mail/components/compose/content/MsgComposeCommands.js