rem: setSortByMenuItemCheckState("sortByAttachmentsMenuitem", (sortType == nsMsgViewSortType.byAttachments)); 
add: setSortByMenuItemCheckState("sortByAttachmentsMenuitem", (sortType == nsMsgViewSortType.byAttachments)); 
context: function InitViewSortByMenu(){  var sortType = gDBView.sortType;  setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate));  setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged));  setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", (sortType == nsMsgViewSortType.byId));  setSortByMenuItemCheckState("sortByPriorityMenuitem", (sortType == nsMsgViewSortType.byPriority));  setSortByMenuItemCheckState("sortBySizeMenuitem", (sortType == nsMsgViewSortType.bySize));  setSortByMenuItemCheckState("sortByStatusMenuitem", (sortType == nsMsgViewSortType.byStatus));  setSortByMenuItemCheckState("sortBySubjectMenuitem", (sortType == nsMsgViewSortType.bySubject));  setSortByMenuItemCheckState("sortByUnreadMenuitem", (sortType == nsMsgViewSortType.byUnread));  setSortByMenuItemCheckState("sortByTagsMenuitem", (sortType == nsMsgViewSortType.byTags));  setSortByMenuItemCheckState("sortByJunkStatusMenuitem", (sortType == nsMsgViewSortType.byJunkStatus));  setSortByMenuItemCheckState("sortByFromMenuitem", (sortType == nsMsgViewSortType.byAuthor));  setSortByMenuItemCheckState("sortByRecipientMenuitem", (sortType == nsMsgViewSortType.byRecipient));   setSortByMenuItemCheckState("sortByAttachmentsMenuitem", (sortType == nsMsgViewSortType.byAttachments)); 	  var sortOrder = gDBView.sortOrder;  var sortTypeSupportsGrouping = (sortType == nsMsgViewSortType.byAuthor       || sortType == nsMsgViewSortType.byDate || sortType == nsMsgViewSortType.byPriority      || sortType == nsMsgViewSortType.bySubject || sortType == nsMsgViewSortType.byTags      || sortType == nsMsgViewSortType.byRecipient || sortType == nsMsgViewSortType.byAccount      || sortType == nsMsgViewSortType.byStatus || sortType == nsMsgViewSortType.byFlagged      || sortType == nsMsgViewSortType.byAttachments);  setSortByMenuItemCheckState("sortAscending", (sortOrder == nsMsgViewSortOrder.ascending));  setSortByMenuItemCheckState("sortDescending", (sortOrder == nsMsgViewSortOrder.descending));  var grouped = ((gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort) != 0);  var threaded = ((gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) != 0 && !grouped);  var sortThreadedMenuItem = document.getElementById("sortThreaded");  var sortUnthreadedMenuItem = document.getElementById("sortUnthreaded");  sortThreadedMenuItem.setAttribute("checked", threaded);  sortUnthreadedMenuItem.setAttribute("checked", !threaded && !grouped);  sortThreadedMenuItem.setAttribute("disabled", !gDBView.supportsThreading);  sortUnthreadedMenuItem.setAttribute("disabled", !gDBView.supportsThreading);  var groupBySortOrderMenuItem = document.getElementById("groupBySort");  groupBySortOrderMenuItem.setAttribute("disabled", !gDBView.supportsThreading || !sortTypeSupportsGrouping);  groupBySortOrderMenuItem.setAttribute("checked", grouped);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/b63a5b72361765e9c991347479ce265f17a15db6/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js