rem: try { messenger.saveAllAttachments(attachmentUrlArray.length, attachmentUrlArray, attachmentDisplayNameArray, attachmentMessageUriArray); } catch (ex) { dump ("** failed to save all attachments ** \n"); } 
add: try {  var attachmentUrlArray = new Array(); var attachmentDisplayNameArray = new Array(); var attachmentMessageUriArray = new Array();   for (index in currentAttachments) { var attachment = currentAttachments[index]; attachmentUrlArray[index] = attachment.url; attachmentDisplayNameArray[index] = escape(attachment.displayName); attachmentMessageUriArray[index] = attachment.uri; }   messenger.saveAllAttachments(attachmentUrlArray.length, attachmentUrlArray, attachmentDisplayNameArray, attachmentMessageUriArray); } catch (ex) { dump ("** failed to save all attachments ** \n"); } 
context: function SaveAllAttachments(){    try     {        messenger.saveAllAttachments(attachmentUrlArray.length,                                     attachmentUrlArray,                                     attachmentDisplayNameArray,                                     attachmentMessageUriArray);    }    catch (ex)    {        dump ("** failed to save all attachments ** \n");    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1875274a8fa019f89c21e9611482844b208e382d/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js