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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/f85f84c7ae4e508cc812c028601029d0d94716e4/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js