rem: dump("XXX ex = " + ex + "\n"); 
add: dump("GoNextMessage ex = " + ex + "\n"); 
context: function GoNextMessage(type, startFromBeginning){  try {    var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);    var outlinerSelection = outlinerView.selection;    var currentIndex = outlinerSelection.currentIndex;    var status = gDBView.navigateStatus(type);    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)) {        outlinerSelection.select(resultIndex.value);        EnsureRowInThreadOutlinerIsVisible(resultIndex.value);         return;    }        CrossFolderNavigation(type, true);  }  catch (ex) {    dump("XXX ex = " + ex + "\n");  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c2ebcb24dbdfbe29746cefcdeb69a92c33535f29/msgViewNavigation.js/clean/mailnews/base/resources/content/msgViewNavigation.js