rem: var msgDS = folderDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = msgWindow;  msgDS = accountManagerDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = msgWindow;  
add: var msgDS; var viewDataSources = [accountManagerDataSource, folderDataSource, unreadFolderDataSource, favoriteFoldersDataSource, recentFoldersDataSource]; for (index in viewDataSources) { msgDS = viewDataSources[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = msgWindow; } 
context: function AddDataSources(){  accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);  folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource);  //to move menu item  SetupMoveCopyMenus('moveMenu', accountManagerDataSource, folderDataSource);  //to copy menu item  SetupMoveCopyMenus('copyMenu', accountManagerDataSource, folderDataSource);  //To FileButton menu  SetupMoveCopyMenus('button-file', accountManagerDataSource, folderDataSource);  //To move and copy menus in message pane context  SetupMoveCopyMenus("messagePaneContext-copyMenu", accountManagerDataSource, folderDataSource);  SetupMoveCopyMenus("messagePaneContext-moveMenu", accountManagerDataSource, folderDataSource);  //Add statusFeedback  var msgDS = folderDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource);  msgDS.window = msgWindow;  msgDS = accountManagerDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource);  msgDS.window = msgWindow;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/8a207edbb02eab4cdc015d34a0d290abb66f793c/mailWindow.js/clean/mail/base/content/mailWindow.js