rem: currentAttachments.push (new createNewAttachmentInfo(contentType, url, displayName, uri, notDownloaded)); 
add: if (numAttachments == 1) { try {  var hdr = messenger.messageServiceFromURI(uri).messageURIToMsgHdr(uri); hdr.markHasAttachments(true); } catch (ex) { dump("ex = " + ex + "\n"); } } 
context:     handleAttachment: function(contentType, url, displayName, uri, notDownloaded)     {      var numAttachments = currentAttachments.length;      currentAttachments.push (new createNewAttachmentInfo(contentType, url, displayName, uri, notDownloaded));    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7f6aa21d4f2c498c1c7652ddebd0d58058e4b36d/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js