rem: var scrolled = ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */); 
add: var scrolled = pref.getBoolPref("mailnews.scroll_to_new_message") && ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */); 
context: function ScrollToMessageAfterFolderLoad (folder){  var scrolled = ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);  if (!scrolled && folder && pref.getBoolPref("mailnews.remember_selected_message"))   {    // if we failed to scroll to a new message,    // reselect the last selected message    var lastMessageLoaded = folder.lastMessageLoaded;    if (lastMessageLoaded != nsMsgKey_None)      scrolled = SelectAndScrollToKey(lastMessageLoaded);  }    if (!scrolled)   {    // if we still haven't scrolled,    // scroll to the newest, which might be the top or the bottom    // depending on our sort order and sort type    if (gDBView.sortOrder == nsMsgViewSortOrder.ascending)     {      switch (gDBView.sortType)       {        case nsMsgViewSortType.byDate:         case nsMsgViewSortType.byId:         case nsMsgViewSortType.byThread:          scrolled = ScrollToMessage(nsMsgNavigationType.lastMessage, true, false /* selectMessage */);         break;      }    }          // if still we haven't scrolled,    // scroll to the top.    if (!scrolled)      EnsureRowInThreadTreeIsVisible(0);  }       return scrolled;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/20914da2706c1722711ea7be504747781f29f635/msgMail3PaneWindow.js/buggy/mail/base/content/msgMail3PaneWindow.js