rem: gDBView.loadMessageByMsgKey(messageKey); 
add: var viewIndex = gDBView.findIndexFromKey(messageKey, true); gDBView.loadMessageByViewIndex(viewIndex); 
context: function LoadMessageByMsgKey(messageKey){  gDBView.loadMessageByMsgKey(messageKey); // we only want to update the toolbar if there was no previous selected message.  if (nsMsgKey_None == gDBView.keyForFirstSelectedMessage)    UpdateMailToolbar("update toolbar for message Window");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c854cb96a30454035b0c25f1ac4bcc31909478f8/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js