rem: if ((resultId.value != -1) && (resultIndex.value != -1)) { 
add: if ((resultId.value != nsMsgViewIndex_None) && (resultIndex.value != nsMsgViewIndex_None)) { 
context: function ScrollToMessage(type, wrap, selectMessage){  try {    var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);    var outlinerSelection = outlinerView.selection;    var currentIndex = outlinerSelection.currentIndex;    var resultId = new Object;    var resultIndex = new Object;    var threadIndex = new Object;    gDBView.viewNavigate(type, resultId, resultIndex, threadIndex, true /* wrap */);    // only scroll and select if we found something    if ((resultId.value != -1) && (resultIndex.value != -1)) {        if (selectMessage) {            outlinerSelection.select(resultIndex.value);        }        EnsureRowInThreadOutlinerIsVisible(resultIndex.value);        return true;    }    else {        return false;    }  }  catch (ex) {    return false;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b0cfdb66cd0f7336855ef19e59e770dc37a44851/msgViewNavigation.js/clean/mailnews/base/resources/content/msgViewNavigation.js