rem: var folder = GetLoadedMsgFolder(); 
add: var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), true); 
context: function MsgMarkAllRead(){    var compositeDataSource = GetCompositeDataSource("MarkAllMessagesRead");    var folder = GetLoadedMsgFolder();    if(folder)        MarkAllMessagesRead(compositeDataSource, folder);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e880a5d6853a25418956ceba2474be0fe014e1f5/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js