rem: for (index in currentAttachments) 
add: for (var index in currentAttachments) 
context: function HandleAllAttachments(action){ try  {   // convert our attachment data into some c++ friendly structs   var attachmentContentTypeArray = new Array();   var attachmentUrlArray = new Array();   var attachmentDisplayNameArray = new Array();   var attachmentMessageUriArray = new Array();   // populate these arrays..   var actionIndex = 0;   for (index in currentAttachments)   {     // exclude all attachments already deleted     var attachment = currentAttachments[index];     if ( attachment.contentType != 'text/x-moz-deleted' )     {       attachmentContentTypeArray[actionIndex] = attachment.contentType;       attachmentUrlArray[actionIndex] = attachment.url;       attachmentDisplayNameArray[actionIndex] = encodeURI(attachment.displayName);       attachmentMessageUriArray[actionIndex] = attachment.uri;       ++actionIndex;     }   }   // okay the list has been built... now call our action code...   if ( action == 'save' )     messenger.saveAllAttachments(attachmentContentTypeArray.length,                                  attachmentContentTypeArray, attachmentUrlArray,                                  attachmentDisplayNameArray, attachmentMessageUriArray);   else if ( action == 'detach' )     messenger.detachAllAttachments(attachmentContentTypeArray.length,                                    attachmentContentTypeArray, attachmentUrlArray,                                    attachmentDisplayNameArray, attachmentMessageUriArray,                                    true); // save   else if ( action == 'delete' )     messenger.detachAllAttachments(attachmentContentTypeArray.length,                                    attachmentContentTypeArray, attachmentUrlArray,                                    attachmentDisplayNameArray, attachmentMessageUriArray,                                    false); // don't save   else     dump ("** unknown HandleAllAttachments action: " + action + "**\n");   }   catch (ex)   {   dump ("** failed to handle all attachments **\n");   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/a1235680e0c3cba34ebc8a66aac51a35462226e4/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js